aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-03-05 09:26:23 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-03-05 09:26:23 +0000
commitc2f3620070bd4c5ef012b8826fab66ba9cdcb89f (patch)
tree60c6928302256c78b7eb883bf4efcea98cbed255 /games
parent6a3a39da4076299b5a7ea252c0ee2ef0f5541a0b (diff)
downloadports-c2f3620070bd4c5ef012b8826fab66ba9cdcb89f.tar.gz
ports-c2f3620070bd4c5ef012b8826fab66ba9cdcb89f.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>
Notes
Notes: svn path=/head/; revision=186567
Diffstat (limited to 'games')
-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 );