diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-21 18:15:35 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-21 18:15:35 -0600 |
commit | 71aad16256604e0e9e146221957a9b00cfe67b99 (patch) | |
tree | 36df0fe07246401f4675c2a5cdda629649685d66 /src/rc/openrc-run.c | |
parent | e275da84de1589253da5ff6a7c272cf1c82f8567 (diff) |
openrc-run: clean up a compiler warning
Diffstat (limited to 'src/rc/openrc-run.c')
-rw-r--r-- | src/rc/openrc-run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c index 7e8d2e50..daeafc52 100644 --- a/src/rc/openrc-run.c +++ b/src/rc/openrc-run.c @@ -1151,7 +1151,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } lnk = xmalloc(4096); - memset(lnk, 0, sizeof(lnk)); + memset(lnk, 0, 4096); if (readlink(argv[1], lnk, sizeof(lnk)-1)) { dir = dirname(path); if (strchr(lnk, '/')) { |