diff options
author | Ollivier Robert <roberto@FreeBSD.org> | 1999-12-21 10:17:36 +0000 |
---|---|---|
committer | Ollivier Robert <roberto@FreeBSD.org> | 1999-12-21 10:17:36 +0000 |
commit | aa50282cd1484ff645604ee9925a63c1482bd373 (patch) | |
tree | 62a62e237e63e11b8bd006b9b4b0ceacc945e375 /lib | |
parent | c64893b10cf8852ba8dc9b4822ab535983b6e938 (diff) | |
download | src-aa50282cd1484ff645604ee9925a63c1482bd373.tar.gz src-aa50282cd1484ff645604ee9925a63c1482bd373.zip |
Notes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/setflags.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/setflagsbyname.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/strtofflags.c | 2 | ||||
-rw-r--r-- | lib/libutil/stat_flags.c | 2 |
4 files changed, 4 insertions, 4 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); } diff --git a/lib/libc/gen/setflagsbyname.c b/lib/libc/gen/setflagsbyname.c index 921d3c54b066..1bf582087ec9 100644 --- a/lib/libc/gen/setflagsbyname.c +++ b/lib/libc/gen/setflagsbyname.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); } diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c index 921d3c54b066..1bf582087ec9 100644 --- a/lib/libc/gen/strtofflags.c +++ b/lib/libc/gen/strtofflags.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); } diff --git a/lib/libutil/stat_flags.c b/lib/libutil/stat_flags.c index 921d3c54b066..1bf582087ec9 100644 --- a/lib/libutil/stat_flags.c +++ b/lib/libutil/stat_flags.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); } |