[146295] trunk/dports/games/moria

khindenburg at macports.org khindenburg at macports.org
Thu Mar 3 18:41:52 PST 2016


Revision: 146295
          https://trac.macports.org/changeset/146295
Author:   khindenburg at macports.org
Date:     2016-03-03 18:41:52 -0800 (Thu, 03 Mar 2016)
Log Message:
-----------
moria: add patch to fix crash #43896

Modified Paths:
--------------
    trunk/dports/games/moria/Portfile

Added Paths:
-----------
    trunk/dports/games/moria/files/patch-files.c.diff

Modified: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile	2016-03-03 18:26:50 UTC (rev 146294)
+++ trunk/dports/games/moria/Portfile	2016-03-04 02:41:52 UTC (rev 146295)
@@ -5,7 +5,7 @@
 
 name                moria
 version             5.5.2
-revision            4
+revision            5
 categories          games
 platforms           darwin
 license             Restrictive/Distributable
@@ -24,7 +24,8 @@
 distname            um${version}
 worksrcdir          umoria
 
-patchfiles          patch-source_config.h.diff \
+patchfiles          patch-files.c.diff \
+                    patch-source_config.h.diff \
                     patch-signals.c.diff \
                     patch-types.h.diff
 
@@ -88,3 +89,5 @@
         }
     }
 }
+
+livecheck.type      none

Added: trunk/dports/games/moria/files/patch-files.c.diff
===================================================================
--- trunk/dports/games/moria/files/patch-files.c.diff	                        (rev 0)
+++ trunk/dports/games/moria/files/patch-files.c.diff	2016-03-04 02:41:52 UTC (rev 146295)
@@ -0,0 +1,18 @@
+https://bugs.launchpad.net/ubuntu/+source/moria/+bug/925005
+https://launchpadlibrarian.net/125044949/moria-hours.diff
+diff -urN moria-5.6/source/files.c moria-5.6.dag/source/files.c
+--- source/files.c	2008-10-14 00:44:36.000000000 +0100
++++ source/files.c	2012-12-06 17:48:38.072272999 +0000
+@@ -125,6 +125,12 @@
+       while (fgets(in_line, 80, file1) != CNIL)
+ 	if (strlen(in_line) > 3)
+ 	  {
++	    /* These lines should be as in tables.c - i.e.
++		3 letter day, :, 24 chars, one per hour
++		the fgets will have read a \n which I'm
++		about to NULL */
++	    in_line[3+1+24]='\0';
++
+ 	    if (!strncmp(in_line, "SUN:", 4))
+ 	      (void) strcpy(days[0], in_line);
+ 	    else if (!strncmp(in_line, "MON:", 4))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160303/b9d4cd7b/attachment.html>


More information about the macports-changes mailing list