aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logger.c1
-rw-r--r--sysklogd/logger.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/logger.c b/logger.c
index 669a2d601..f5c776ddf 100644
--- a/logger.c
+++ b/logger.c
@@ -151,6 +151,7 @@ extern int logger_main(int argc, char **argv)
151 } else { 151 } else {
152 if (argc >= 1) { 152 if (argc >= 1) {
153 int len = 1; /* for the '\0' */ 153 int len = 1; /* for the '\0' */
154 message=xcalloc(1, 1);
154 for (; *argv != NULL; argv++) { 155 for (; *argv != NULL; argv++) {
155 len += strlen(*argv); 156 len += strlen(*argv);
156 len += 1; /* for the space between the args */ 157 len += 1; /* for the space between the args */
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)
151 } else { 151 } else {
152 if (argc >= 1) { 152 if (argc >= 1) {
153 int len = 1; /* for the '\0' */ 153 int len = 1; /* for the '\0' */
154 message=xcalloc(1, 1);
154 for (; *argv != NULL; argv++) { 155 for (; *argv != NULL; argv++) {
155 len += strlen(*argv); 156 len += strlen(*argv);
156 len += 1; /* for the space between the args */ 157 len += 1; /* for the space between the args */