aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake3
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-03-05 17:26:23 +0800
committeralepulver <alepulver@FreeBSD.org>2007-03-05 17:26:23 +0800
commita9aff9b68d6b740ff602850c2a0a5f0689490a58 (patch)
treeaf7fad286b60fdd5a7c69c42197b7de1ebfdc0ac /games/quake3
parentf31aa8d748e28d6be1f63b9e2a9c72566b850e43 (diff)
downloadfreebsd-ports-gnome-a9aff9b68d6b740ff602850c2a0a5f0689490a58.tar.gz
freebsd-ports-gnome-a9aff9b68d6b740ff602850c2a0a5f0689490a58.tar.zst
freebsd-ports-gnome-a9aff9b68d6b740ff602850c2a0a5f0689490a58.zip
- Use "sizeof()" to determine pointer size, instead of using "4" (fixes a
segmentation fault on non-i386). Reported by: Steve Crowder <steve@crowders.org>
Diffstat (limited to 'games/quake3')
-rw-r--r--games/quake3/files/patch-code-qcommon-files.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/games/quake3/files/patch-code-qcommon-files.c b/games/quake3/files/patch-code-qcommon-files.c
index b77b82587ef8..43a683782977 100644
--- a/games/quake3/files/patch-code-qcommon-files.c
+++ b/games/quake3/files/patch-code-qcommon-files.c
@@ -1,5 +1,14 @@
---- ./code/qcommon/files.c.orig Wed May 31 18:55:11 2006
-+++ ./code/qcommon/files.c Wed May 31 18:55:13 2006
+--- code/qcommon/files.c.orig Fri Jan 26 19:58:26 2007
++++ code/qcommon/files.c Fri Jan 26 20:07:18 2007
+@@ -2503,7 +2503,7 @@
+ sorted[i] = pakfiles[i];
+ }
+
+- qsort( sorted, numfiles, 4, paksort );
++ qsort( sorted, numfiles, sizeof(sorted[0]), paksort );
+
+ for ( i = 0 ; i < numfiles ; i++ ) {
+ pakfile = FS_BuildOSPath( path, dir, sorted[i] );
@@ -2763,6 +2763,7 @@
if (fs_basepath->string[0]) {
FS_AddGameDirectory( fs_basepath->string, gameName );