# HG changeset patch # User ib # Date 1302127258 0 # Node ID fd90a10d81a161a8db1e60a06edcac29c2298146 # Parent d57654eb9f313eb7ff9e38efa5a44f62ca046a8e Define ext array more skillfully. diff -r d57654eb9f31 -r fd90a10d81a1 gui/util/bitmap.c --- 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;