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
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");
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);
}