diff options
Diffstat (limited to 'libbb/chomp.c')
-rw-r--r-- | libbb/chomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/chomp.c b/libbb/chomp.c index eab7707..8ffaff5 100644 --- a/libbb/chomp.c +++ b/libbb/chomp.c @@ -15,5 +15,5 @@ void chomp(char *s) char *lc = last_char_is(s, '\n'); if (lc) - *lc = 0; + *lc = '\0'; } |