procps: fix build
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 3 Jul 2014 20:14:30 +0000 (20:14 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 3 Jul 2014 20:14:30 +0000 (20:14 +0000)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 41498

utils/procps/patches/030-fix-string-problems.patch [new file with mode: 0644]

diff --git a/utils/procps/patches/030-fix-string-problems.patch b/utils/procps/patches/030-fix-string-problems.patch
new file mode 100644 (file)
index 0000000..de3756b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/proc/sig.c
++++ b/proc/sig.c
+@@ -214,7 +214,7 @@ void pretty_print_signals(void){
+   while(++i <= number_of_signals){
+     int n;
+     n = printf("%2d %s", i, signal_number_to_name(i));
+-    if(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(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");