diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-09 12:24:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-09 12:24:19 +0000 |
commit | 9cac521f07550764e94c469d70b22ad5c194855a (patch) | |
tree | 98f3e605a5b17bffc9e1f087907bf15049d6e717 /sysklogd | |
parent | 3526a1320a7e70be0def06a31b65ffff3430510b (diff) | |
download | busybox-9cac521f07550764e94c469d70b22ad5c194855a.tar.gz |
using [xa]sprintf for string concatenation is neat and saves
~100 bytes according to bloatcheck. Also this fixes bug in rpm
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index ea093ed52..762e70ff7 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c @@ -138,7 +138,7 @@ int logger_main(int argc, char **argv) len += strlen(*argv); message = xrealloc(message, len); if(!i) - message[0] = 0; + message[0] = '\0'; else strcat(message, " "); strcat(message, *argv); |