summaryrefslogtreecommitdiffstats
path: root/games/freebsd-games/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-10-11 22:52:00 +0000
committerpav <pav@FreeBSD.org>2004-10-11 22:52:00 +0000
commitf4f68fc51beca738be7a92233aeb3649bd329446 (patch)
tree4f7d017351fe5a705d962fe53a0d027268c02f01 /games/freebsd-games/files
parent6fd980ff8bd8fc184a29437a9775573875dd9d55 (diff)
downloadFreeBSD-ports-f4f68fc51beca738be7a92233aeb3649bd329446.zip
FreeBSD-ports-f4f68fc51beca738be7a92233aeb3649bd329446.tar.gz
- Fix segfault when saving game in adventure
PR: ports/72165 Submitted by: Joel Ray Holveck <joelh@piquan.org>
Diffstat (limited to 'games/freebsd-games/files')
-rw-r--r--games/freebsd-games/files/patch-adventure::crc.c11
-rw-r--r--games/freebsd-games/files/patch-adventure::hdr.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/games/freebsd-games/files/patch-adventure::crc.c b/games/freebsd-games/files/patch-adventure::crc.c
new file mode 100644
index 0000000..dfca63e
--- /dev/null
+++ b/games/freebsd-games/files/patch-adventure::crc.c
@@ -0,0 +1,11 @@
+--- adventure/crc.c.bak Sat Feb 23 01:59:45 2002
++++ adventure/crc.c Wed Sep 29 03:29:37 2004
+@@ -120,7 +120,7 @@
+
+ /* Process nr bytes at a time; ptr points to them */
+ u_long
+-crc(const char *ptr, size_t nr)
++crc(const char *ptr, ssize_t nr)
+ {
+ int i;
+ const char *p;
diff --git a/games/freebsd-games/files/patch-adventure::hdr.h b/games/freebsd-games/files/patch-adventure::hdr.h
new file mode 100644
index 0000000..02344c9
--- /dev/null
+++ b/games/freebsd-games/files/patch-adventure::hdr.h
@@ -0,0 +1,11 @@
+--- adventure/hdr.h.bak Mon Nov 10 15:46:52 2003
++++ adventure/hdr.h Wed Sep 29 03:30:55 2004
+@@ -167,7 +167,7 @@
+ void checkhints (void);
+ void ciao (void);
+ extern gid_t egid;
+-u_long crc (const char *ptr, size_t nr);
++u_long crc (const char *ptr, ssize_t nr);
+ void crc_start (void);
+ int dark (void);
+ void datime (int *d, int *t);
OpenPOWER on IntegriCloud