[Mesa-dev] [PATCH] Fix format not a string literal error with -Werror=format-security
Eugeni Dodonov
eugeni at dodonov.net
Fri Jun 10 11:26:02 PDT 2011
From: Eugeni Dodonov <eugeni at 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);
}
}
--
1.7.5.4
More information about the mesa-dev
mailing list