summaryrefslogtreecommitdiff
path: root/avivotool.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-12-02 16:35:32 -0600
committerDave Airlie <airlied@redhat.com>2011-12-05 19:34:49 +0000
commit9f7519cd393c539cd4cc897b7254078488604d7f (patch)
treeb8e1d2f72dcbecbde0620df4e44d3a68c20699d4 /avivotool.c
parent1058663a5ebc9f94ebeae6c3727f16dfc39d088e (diff)
avoid -Wformat-security warnings
fatal() is never called with a user-specified argument so it is safe to pass its argument as an fprintf format string, but gcc doesn't know that. Use fprintf(stderr, "%s", arg) to make the intent clearer. This fixes the build in distro setups that pass -Werror=format-security. Based on the patch by Tormod. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'avivotool.c')
-rw-r--r--avivotool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avivotool.c b/avivotool.c
index 240f523..02b03ba 100644
--- a/avivotool.c
+++ b/avivotool.c
@@ -64,7 +64,7 @@ unsigned char * volatile fb_mem;
static void fatal(char *why)
{
- fprintf(stderr, why);
+ fprintf(stderr, "%s", why);
pci_system_cleanup();
}