Fix format not a string literal error with -Werror=format-security
authorEugeni Dodonov <eugeni@mandriva.com>
Fri, 10 Jun 2011 18:26:02 +0000 (15:26 -0300)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 10 Jun 2011 19:20:07 +0000 (12:20 -0700)
A trivial fix for error: format not a string literal and no format
arguments with compiling with -Werror=format-security flags.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 09033aecd7c20348c888bd1e2a16320f352850e1..7c73a8fbf024b34ae9c5eaab5f2d67211224fb36 100644 (file)
@@ -100,7 +100,7 @@ fs_visitor::fail(const char *format, ...)
    this->fail_msg = msg;
 
    if (INTEL_DEBUG & DEBUG_WM) {
-      fprintf(stderr, msg);
+      fprintf(stderr, "%s",  msg);
    }
 }