diff options
Diffstat (limited to 'games/xmemory/files/patch-gif__image.C')
-rw-r--r-- | games/xmemory/files/patch-gif__image.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games/xmemory/files/patch-gif__image.C b/games/xmemory/files/patch-gif__image.C new file mode 100644 index 000000000000..ac3b3026e31d --- /dev/null +++ b/games/xmemory/files/patch-gif__image.C @@ -0,0 +1,13 @@ +--- gif_image.C.orig 1996-07-04 20:36:15 UTC ++++ gif_image.C +@@ -58,8 +58,8 @@ GifImage::GifImage(const char *filename, + : lockcount(0) { + first=0; + LoadGIF( filename ); +- name = strrchr(filename,'/'); +- if (name) name=strdup(name+1); ++ const char *pos = strrchr(filename,'/'); ++ if (pos) name=strdup(pos+1); + else name=strdup(filename); + + if (autocrop&&!fastinfo_flag) CropImage(); |