diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-06-09 19:31:25 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-06-09 19:31:25 -0500 |
commit | 6ea091a04aa521bea24fba12c1b29290abcf6e96 (patch) | |
tree | b4951afb47c77adced9d526536ba864025a78af1 /src | |
parent | ed5be0f146dfe1e2fd10947ebc1cf72b39573798 (diff) | |
download | vyatta-cfg-6ea091a04aa521bea24fba12c1b29290abcf6e96.tar.gz vyatta-cfg-6ea091a04aa521bea24fba12c1b29290abcf6e96.zip |
Bugfix 7153: Initialize buffer before reading into it
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_new.c | 1 |
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) { |