summaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorEric Andersen2000-12-11 20:29:13 +0000
committerEric Andersen2000-12-11 20:29:13 +0000
commitd323d32c5bba8e21bcd1e3df511f8d842a5d5457 (patch)
treeaf40d8acb790ee574da050b333b70c3ad8f62398 /sysklogd/logger.c
parent5a964f9d0b96ab19198a9b5d27e855061aad0959 (diff)
downloadbusybox-d323d32c5bba8e21bcd1e3df511f8d842a5d5457.zip
busybox-d323d32c5bba8e21bcd1e3df511f8d842a5d5457.tar.gz
Patch from larry doolittle to make sure we don't realloc
a pointer that was not yet malloced mem.
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r--sysklogd/logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 669a2d6..f5c776d 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -151,6 +151,7 @@ extern int logger_main(int argc, char **argv)
} else {
if (argc >= 1) {
int len = 1; /* for the '\0' */
+ message=xcalloc(1, 1);
for (; *argv != NULL; argv++) {
len += strlen(*argv);
len += 1; /* for the space between the args */