From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/openrc:0.35.x commit in: src/rc/
Date: Fri, 2 Mar 2018 01:33:00 +0000 (UTC) [thread overview]
Message-ID: <1519950782.05cfbb8348cf92bcc2edd922af1dc0a4c4c2e1f4.williamh@OpenRC> (raw)
commit: 05cfbb8348cf92bcc2edd922af1dc0a4c4c2e1f4
Author: Chris Cromer <cromerc <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Fri Mar 2 00:31:33 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Mar 2 00:33:02 2018 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=05cfbb83
openrc-run: fix memory size (#213)
Fixes #212
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 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);
next reply other threads:[~2018-03-02 1:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-02 1:33 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-15 3:03 [gentoo-commits] proj/openrc:0.35.x commit in: src/rc/ William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1519950782.05cfbb8348cf92bcc2edd922af1dc0a4c4c2e1f4.williamh@OpenRC \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox