changeset 33141:fd90a10d81a1

Define ext array more skillfully.
author ib
date Wed, 06 Apr 2011 22:00:58 +0000
parents d57654eb9f31
children 3aa60275d74f
files gui/util/bitmap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Wed Apr 06 17:49:15 2011 +0000
+++ b/gui/util/bitmap.c	Wed Apr 06 22:00:58 2011 +0000
@@ -178,7 +178,7 @@
 
 static unsigned char *fExist(unsigned char *fname)
 {
-    unsigned char *ext[] = { "png", "PNG" };
+    static const char ext[][4] = { "png", "PNG" };
     static unsigned char buf[512];
     unsigned int i;