games/xmemory: unbreak with libc++ 3.9
gif_image.C:61:7: error: assigning to 'char *' from incompatible type 'const char *' name = strrchr(filename,'/'); ^ ~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
This commit is contained in:
parent
3a2f943a32
commit
4ab4743267
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433009
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= xmemory
|
||||
PORTVERSION= 3.7
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= XCONTRIB/games/multiplayer
|
||||
|
||||
|
13
games/xmemory/files/patch-gif__image.C
Normal file
13
games/xmemory/files/patch-gif__image.C
Normal file
@ -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();
|
Loading…
Reference in New Issue
Block a user