pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xjig Fix const correctness for C++ compliant str...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/63559b4f655c
branches:  trunk
changeset: 414334:63559b4f655c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Mar 26 02:32:43 2020 +0000

description:
Fix const correctness for C++ compliant string.h

diffstat:

 games/xjig/distinfo                   |   3 ++-
 games/xjig/patches/patch-gif__image.C |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 2fb530684e1a -r 63559b4f655c games/xjig/distinfo
--- a/games/xjig/distinfo       Thu Mar 26 02:32:13 2020 +0000
+++ b/games/xjig/distinfo       Thu Mar 26 02:32:43 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2015/11/03 20:57:08 agc Exp $
+$NetBSD: distinfo,v 1.9 2020/03/26 02:32:43 joerg Exp $
 
 SHA1 (xjig-2.4.tgz) = 539ee5974d7228e69bb84de1424064f84cac7577
 RMD160 (xjig-2.4.tgz) = 8abe64ebd9045eb4c39db9cec7f2907212c26b1c
@@ -6,3 +6,4 @@
 Size (xjig-2.4.tgz) = 124272 bytes
 SHA1 (patch-aa) = d2999a3388c91c8d90cca3b62ae007d8202cb8ac
 SHA1 (patch-ab) = 6055c5acc964b1bb7b4ef98b6cf14289c8e6c7da
+SHA1 (patch-gif__image.C) = 0090f0169a6919fad5a46cc31dccccc14dd748a9
diff -r 2fb530684e1a -r 63559b4f655c games/xjig/patches/patch-gif__image.C
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjig/patches/patch-gif__image.C     Thu Mar 26 02:32:43 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gif__image.C,v 1.1 2020/03/26 02:32:43 joerg Exp $
+
+--- gif_image.C.orig   2020-03-25 13:57:03.791661713 +0000
++++ 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 *filename2 = strrchr(filename,'/');
++      if (filename2)  name=strdup(filename2+1);
+       else                    name=strdup(filename);
+ 
+       if (autocrop&&!fastinfo_flag)   CropImage();



Home | Main Index | Thread Index | Old Index