procps: fix build
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@41498 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2776e89dce
commit
4d77d210fa
11
utils/procps/patches/030-fix-string-problems.patch
Normal file
11
utils/procps/patches/030-fix-string-problems.patch
Normal file
@ -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");
|
Loading…
x
Reference in New Issue
Block a user