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:
Craig Small
2012-03-03 12:05:07 +11:00
parent a15520db8c
commit 563dd2c5f1
2 changed files with 2 additions and 2 deletions

View File

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