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:
parent
a15520db8c
commit
563dd2c5f1
@ -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");
|
||||
|
@ -514,6 +514,6 @@ catastrophic_failure(const char *filename,
|
||||
unsigned int linenum,
|
||||
const char *message)
|
||||
{
|
||||
error_at_line(0, 0, filename, linenum, message);
|
||||
error_at_line(0, 0, filename, linenum, "%s", message);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user