On 06/10/2011 11:26 AM, Eugeni Dodonov wrote:
From: Eugeni Dodonov<eug...@mandriva.com>

A trivial fix for error: format not a string literal and no format
arguments with compiling with -Werror=format-security flags.
---
  src/mesa/drivers/dri/i965/brw_fs.cpp |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp 
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 09033ae..7c73a8f 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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);
     }
  }

Thanks, pushed!  Welcome to the project :)

--Kenneth
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to