summaryrefslogtreecommitdiff
path: root/games/xmemory/files/patch-gif__image.C
blob: ac3b3026e31d6b72c26941c86d93b27eb8c56191 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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();