summaryrefslogtreecommitdiff
path: root/testing/procps-ng/sig_printf_literal.patch
blob: 2140abf0df1bda9871c1fc6dd49cd0c34f35a30b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/proc/sig.c
+++ b/proc/sig.c
@@ -257,7 +257,7 @@
   while(++i <= number_of_signals){
     int n;
     n = printf("%2d %s", i, signal_number_to_name(i));
-    if(n>0 && i%7) printf("           \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + n);
+    if(n>0 && i%7) printf("%s", "           \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + n);
     else printf("\n");
   }
   if((i-1)%7) printf("\n");