From 0f8426381a7dad39ce0d0347dc13c2e4510895c4 Mon Sep 17 00:00:00 2001 From: andersen Date: Mon, 11 Dec 2000 20:29:13 +0000 Subject: Patch from larry doolittle to make sure we don't realloc a pointer that was not yet malloced mem. git-svn-id: svn://busybox.net/trunk/busybox@1428 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- sysklogd/logger.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysklogd/logger.c') diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 669a2d601..f5c776ddf 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 */ -- cgit v1.2.3-55-g6feb