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 eab770760..8ffaff518 100644 --- a/libbb/chomp.c +++ b/libbb/chomp.c | |||
@@ -15,5 +15,5 @@ void chomp(char *s) | |||
15 | char *lc = last_char_is(s, '\n'); | 15 | char *lc = last_char_is(s, '\n'); |
16 | 16 | ||
17 | if (lc) | 17 | if (lc) |
18 | *lc = 0; | 18 | *lc = '\0'; |
19 | } | 19 | } |