summaryrefslogtreecommitdiff
path: root/source/ap/dash/dash-0.5.7-format-security.patch
blob: d578dfbd8bee329cf0fc52c8341719305769000a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)");