DASH Shell discussions
 help / color / mirror / Atom feed
* [PATCH] Fix build failure with gcc -Werror=format-security
@ 2014-06-24 12:40 Petr Šabata
  0 siblings, 0 replies; only message in thread
From: Petr Šabata @ 2014-06-24 12:40 UTC (permalink / raw)
  To: dash; +Cc: Petr Šabata

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-24 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-24 12:40 [PATCH] Fix build failure with gcc -Werror=format-security Petr Šabata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox