From 71aad16256604e0e9e146221957a9b00cfe67b99 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 21 Feb 2018 18:15:35 -0600 Subject: openrc-run: clean up a compiler warning --- src/rc/openrc-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, '/')) { -- cgit v1.2.3