svn commit: r433010 - in head/games/xjig: . files
Jan Beich
jbeich at FreeBSD.org
Wed Feb 1 12:25:59 UTC 2017
Author: jbeich
Date: Wed Feb 1 12:25:57 2017
New Revision: 433010
URL: https://svnweb.freebsd.org/changeset/ports/433010
Log:
games/xjig: 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
Added:
head/games/xjig/files/patch-gif__image.C (contents, props changed)
Modified:
head/games/xjig/Makefile (contents, props changed)
Modified: head/games/xjig/Makefile
==============================================================================
--- head/games/xjig/Makefile Wed Feb 1 12:25:46 2017 (r433009)
+++ head/games/xjig/Makefile Wed Feb 1 12:25:57 2017 (r433010)
@@ -3,7 +3,7 @@
PORTNAME= xjig
PORTVERSION= 2.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= XCONTRIB/games
Added: head/games/xjig/files/patch-gif__image.C
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/xjig/files/patch-gif__image.C Wed Feb 1 12:25:57 2017 (r433010)
@@ -0,0 +1,13 @@
+--- gif_image.C.orig 1996-07-04 21:43:12 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();
More information about the svn-ports-all
mailing list