diff options
Diffstat (limited to 'src/rc')
-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 daeafc52..73def8fb 100644 --- a/src/rc/openrc-run.c +++ b/src/rc/openrc-run.c @@ -1152,7 +1152,7 @@ int main(int argc, char **argv) } lnk = xmalloc(4096); memset(lnk, 0, 4096); - if (readlink(argv[1], lnk, sizeof(lnk)-1)) { + if (readlink(argv[1], lnk, 4096)) { dir = dirname(path); if (strchr(lnk, '/')) { save = xstrdup(dir); |