[Mesa-dev] [PATCH mesa-demos 6/6] es1_info: change printf(indentString) to printf("%s", indentString)
Paulo Zanoni
pzanoni at mandriva.com
Thu Jan 6 08:19:05 PST 2011
IMHO, code looks safer this way.
Signed-off-by: Paulo Zanoni <pzanoni at mandriva.com>
---
Please read comments from patch 0001.
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) {
--
1.7.1
More information about the mesa-dev
mailing list