diff options
author | Paulo Zanoni <pzanoni@mandriva.com> | 2011-01-06 08:09:26 -0800 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-01-12 07:39:02 -0700 |
commit | 4238e09432548033d40fc24508d5af130aaa4634 (patch) | |
tree | ef966526c21492db576c210460c5e1c4333cc1c0 | |
parent | dae5c9fc45eda303a624c63946cc187ca820532d (diff) |
es1_info: convert indentString into a literal string
This fixes compilation with "-Wformat -Werror=format-security". Some
distros like Mandriva enable this flag by default. Its purpose is to
improve security.
Another option for this patch would be to do
"printf("%s", indentString)", but converting indentString into a literal
also gives the compiler some hints to improve performance.
Signed-off-by: Paulo Zanoni <pzanoni@mandriva.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | src/egl/opengles1/es1_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/opengles1/es1_info.c b/src/egl/opengles1/es1_info.c index 93816b52..38becc56 100644 --- a/src/egl/opengles1/es1_info.c +++ b/src/egl/opengles1/es1_info.c @@ -29,7 +29,7 @@ static void print_extension_list(const char *ext) { - const char *indentString = " "; + const char indentString[] = " "; const int indent = 4; const int max = 79; int width, i, j; |