diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-22 12:54:21 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-22 12:54:21 -0600 |
commit | 98262647a9d2f3c65a7ceb1aaa81095522c1ef06 (patch) | |
tree | 4d837a9d720e82e0b350208aec7e7a1cf3f57df5 /src/rc | |
parent | 5868abe97babcc287794dcb36ad8e77989b6ddcf (diff) |
supervise-daemon: zero out the cmdline buffer when it is allocated
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/supervise-daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index a858cf46..6d36a5aa 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -233,6 +233,7 @@ static char *make_cmdline(char **argv) for (c = argv; c && *c; c++) len += (strlen(*c) + 1); cmdline = xmalloc(len); + memset(cmdline, 0, len); for (c = argv; c && *c; c++) { strcat(cmdline, *c); strcat(cmdline, " "); |