Demos (master): es1_info: change printf(indentString) to printf("%s", indentString)
Brian Paul
brianp at kemper.freedesktop.org
Wed Jan 12 14:39:33 UTC 2011
Module: Demos
Branch: master
Commit: c5057cb55ac8862a99ec446649b92977a8ae7e93
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=c5057cb55ac8862a99ec446649b92977a8ae7e93
Author: Paulo Zanoni <pzanoni at mandriva.com>
Date: Thu Jan 6 08:19:05 2011 -0800
es1_info: change printf(indentString) to printf("%s", indentString)
IMHO, code looks safer this way.
Signed-off-by: Paulo Zanoni <pzanoni at mandriva.com>
Signed-off-by: Brian Paul <brianp at vmware.com>
---
src/egl/opengles1/es1_info.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/egl/opengles1/es1_info.c b/src/egl/opengles1/es1_info.c
index 38becc5..e33597f 100644
--- a/src/egl/opengles1/es1_info.c
+++ b/src/egl/opengles1/es1_info.c
@@ -38,7 +38,7 @@ print_extension_list(const char *ext)
return;
width = indent;
- printf(indentString);
+ printf("%s", indentString);
i = j = 0;
while (1) {
if (ext[j] == ' ' || ext[j] == 0) {
@@ -48,7 +48,7 @@ print_extension_list(const char *ext)
/* start a new line */
printf("\n");
width = indent;
- printf(indentString);
+ printf("%s", indentString);
}
/* print the extension name between ext[i] and ext[j] */
while (i < j) {
More information about the mesa-commit
mailing list