Fix string literals in fprintf and friends
Both these are from [-Werror=format-security] sig.c:262:5: error: format not a string literal and no format arguments global.c:517:3: error: format not a string literal and no format arguments
This commit is contained in:
@ -259,7 +259,7 @@ void pretty_print_signals(void){
|
||||
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");
|
||||
|
Reference in New Issue
Block a user