aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-09 12:24:19 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-09 12:24:19 +0000
commit5dff2613d78e3a97fb2f0173b729e225278981ab (patch)
tree98f3e605a5b17bffc9e1f087907bf15049d6e717 /sysklogd/logger.c
parent6d51db74a9a69bd95cd1130fa8149dda21fb7531 (diff)
downloadbusybox-w32-5dff2613d78e3a97fb2f0173b729e225278981ab.tar.gz
busybox-w32-5dff2613d78e3a97fb2f0173b729e225278981ab.tar.bz2
busybox-w32-5dff2613d78e3a97fb2f0173b729e225278981ab.zip
using [xa]sprintf for string concatenation is neat and saves
~100 bytes according to bloatcheck. Also this fixes bug in rpm git-svn-id: svn://busybox.net/trunk/busybox@16081 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r--sysklogd/logger.c2
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)
138 len += strlen(*argv); 138 len += strlen(*argv);
139 message = xrealloc(message, len); 139 message = xrealloc(message, len);
140 if(!i) 140 if(!i)
141 message[0] = 0; 141 message[0] = '\0';
142 else 142 else
143 strcat(message, " "); 143 strcat(message, " ");
144 strcat(message, *argv); 144 strcat(message, *argv);