From: "Petr Šabata" <contyk@redhat.com>
To: dash@vger.kernel.org
Cc: "Petr Šabata" <contyk@redhat.com>
Subject: [PATCH] Fix build failure with gcc -Werror=format-security
Date: Tue, 24 Jun 2014 14:40:57 +0200 [thread overview]
Message-ID: <1403613657-5859-1-git-send-email-contyk@redhat.com> (raw)
This fix lets dash build with the abovementioned option.
Signed-off-by: Petr Šabata <contyk@redhat.com>
---
src/jobs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jobs.c b/src/jobs.c
index bf40204..f3af44d 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -427,7 +427,7 @@ sprint_status(char *s, int status, int sigonly)
goto out;
#endif
}
- col = fmtstr(s, 32, strsignal(st));
+ col = fmtstr(s, 32, "%s", strsignal(st));
#ifdef WCOREDUMP
if (WCOREDUMP(status)) {
col += fmtstr(s + col, 16, " (core dumped)");
--
1.9.3
reply other threads:[~2014-06-24 12:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1403613657-5859-1-git-send-email-contyk@redhat.com \
--to=contyk@redhat.com \
--cc=dash@vger.kernel.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).