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 committed 2012-03-03 12:05:07 +11:00
1 parent a15520db8c
commit 563dd2c5f1
2 files changed
+2 -2

No files matched your search

+1 -1
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);
}