summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli_new.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli_new.c b/src/cli_new.c
index f01d2a4..863f6a1 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -2154,6 +2154,7 @@ system_out(char *cmd, const char *prepend_msg, boolean eloc)
if (sret == 1) {
/* ready for read */
char buf[128];
+ memset(buf,'\0',128);
char *out = buf;
ssize_t count = read(pfd[0], buf, 128);
if (count <= 0) {