X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fchomp.c;h=ed4bf6bebf655b040f1c79070aac276383a1df4d;hb=d7171c114028815df4e92f9c26875f1d60c6af2a;hp=eab7707600062ebeced31b9c7532cb7c76b04edd;hpb=067e3f031a2107c69d287d89b9543fbfe5c0a571;p=oweals%2Fbusybox.git diff --git a/libbb/chomp.c b/libbb/chomp.c index eab770760..ed4bf6beb 100644 --- a/libbb/chomp.c +++ b/libbb/chomp.c @@ -10,10 +10,10 @@ #include "libbb.h" -void chomp(char *s) +void FAST_FUNC chomp(char *s) { char *lc = last_char_is(s, '\n'); if (lc) - *lc = 0; + *lc = '\0'; }