shithub: qk3

Download patch

ref: be6750ad938eef446ba2f82db0cf602c000cffed
parent: bf5dc91f8d7bc2035effd18290c523050fa1b2cd
author: qwx <>
date: Sun Jan 13 05:22:59 EST 2019

files: fix hardcoded pointer size

--- a/code/qcommon/files.c
+++ b/code/qcommon/files.c
@@ -2517,7 +2517,7 @@
 		sorted[i] = pakfiles[i];
 	}
 
-	qsort( sorted, numfiles, 4, paksort );
+	qsort( sorted, numfiles, sizeof(char *), paksort );
 
 	for ( i = 0 ; i < numfiles ; i++ ) {
 		pakfile = FS_BuildOSPath( path, dir, sorted[i] );