[PATCH] Fix gcc 4.4 string literal problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alexey Gladkov <gladkov.alexey@xxxxxxxxx> 
--- 
 src/jobs.c |    2 +- 
 1 files changed, 1 insertions(+), 1 deletions(-) 
 
diff --git a/src/jobs.c b/src/jobs.c 
index b1ab7ab..305189e 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)); 
                if (WCOREDUMP(status)) { 
                        col += fmtstr(s + col, 16, " (core dumped)"); 
                } 
--  
1.6.3.1

--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux