Skip to contentSkip to conversation

Fix gcc 4.4 string literal problem

PATCH New Alexey Gladkov 1 participant 1 message May 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix gcc 4.4 string literal problem

---

 src/jobs.c |    2 +- 
 1 files changed, 1 insertions(+), 1 deletions(-) 
src/jobs.c +1 -1
index b1ab7ab..305189e 100644 
@@ -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)"); 
                } 
Signature · 1 line
1.6.3.1