aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/openrc-run.c2
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, '/')) {