mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Use "sizeof()" to determine pointer size, instead of using "4" (fixes a
segmentation fault on non-i386). Reported by: Steve Crowder <steve@crowders.org>
This commit is contained in:
parent
6a3a39da40
commit
c2f3620070
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186567
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user