From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6ECAF1382C5 for ; Thu, 22 Feb 2018 00:17:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BE39E082B; Thu, 22 Feb 2018 00:17:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57E7DE082B for ; Thu, 22 Feb 2018 00:17:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 27356335C4B for ; Thu, 22 Feb 2018 00:17:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AFD8321D for ; Thu, 22 Feb 2018 00:17:25 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1519258535.71aad16256604e0e9e146221957a9b00cfe67b99.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/openrc-run.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 71aad16256604e0e9e146221957a9b00cfe67b99 X-VCS-Branch: master Date: Thu, 22 Feb 2018 00:17:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9c9d1695-95cc-42d3-9ed1-7966bcc34d0a X-Archives-Hash: 87b51a571c688b2ecb4f902d58cfaa58 commit: 71aad16256604e0e9e146221957a9b00cfe67b99 Author: William Hubbs gmail com> AuthorDate: Thu Feb 22 00:15:35 2018 +0000 Commit: William Hubbs gentoo 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, '/')) {