aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/setflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/setflags.c')
-rw-r--r--lib/libc/gen/setflags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/setflags.c b/lib/libc/gen/setflags.c
index 921d3c54b066..1bf582087ec9 100644
--- a/lib/libc/gen/setflags.c
+++ b/lib/libc/gen/setflags.c
@@ -94,7 +94,7 @@ flags_to_string(flags, def)
setflags &= ~mapping[i].flag;
}
}
- *dp++ = '\0';
+ *dp = '\0';
return (dp == string && def != NULL ? def : string);
}