Fix build failure with gcc -Werror=format-security
PATCH 1/1 Fix build failure with gcc -Werror=format-security
This fix lets dash build with the abovementioned option.
Signed-off-by Petr Šabata <[email protected]>
--- src/jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/jobs.c +1 -1
@@ -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)" );
Signature · 1 line
1.9.3