Mesa (master): Fix format not a string literal error with -Werror= format-security
Kenneth Graunke
kwg at kemper.freedesktop.org
Fri Jun 10 19:21:07 UTC 2011
Module: Mesa
Branch: master
Commit: 23ef4a6063668c187d00a0502207f0c03be5f994
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23ef4a6063668c187d00a0502207f0c03be5f994
Author: Eugeni Dodonov <eugeni at mandriva.com>
Date: Fri Jun 10 15:26:02 2011 -0300
Fix format not a string literal error with -Werror=format-security
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 at whitecape.org>
---
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);
}
}
More information about the mesa-commit
mailing list