- Fix segfault when saving game in adventure
PR: ports/72165 Submitted by: Joel Ray Holveck <joelh@piquan.org>
This commit is contained in:
parent
6c8967a9b4
commit
71d639506b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118649
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= freebsd-games
|
||||
PORTVERSION= 5.1.1
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR=markm
|
||||
|
11
games/bsdgames/files/patch-adventure::crc.c
Normal file
11
games/bsdgames/files/patch-adventure::crc.c
Normal file
@ -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;
|
11
games/bsdgames/files/patch-adventure::hdr.h
Normal file
11
games/bsdgames/files/patch-adventure::hdr.h
Normal file
@ -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);
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= freebsd-games
|
||||
PORTVERSION= 5.1.1
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR=markm
|
||||
|
11
games/freebsd-games/files/patch-adventure::crc.c
Normal file
11
games/freebsd-games/files/patch-adventure::crc.c
Normal file
@ -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;
|
11
games/freebsd-games/files/patch-adventure::hdr.h
Normal file
11
games/freebsd-games/files/patch-adventure::hdr.h
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user