commit: 71aad16256604e0e9e146221957a9b00cfe67b99
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Thu Feb 22 00:15:35 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Feb 22 00:15:35 2018 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=71aad162
openrc-run: clean up a compiler warning
src/rc/openrc-run.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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, '/')) {