ac2c14f932
- Make portlint happy. - Allow building the VM on PowerPC. - Fix a typo in option detection code (&& -> ||). - Fix 2 security vulnerabilities [1]. PR: ports/98296 Submitted by: alepulver (myself) Approved by: Linas Valiukas <shirshegsm@gmail.com> (maintainer) Obtained from: q3icculus (http://icculus.org/quake3/) [1] Security: CVE-2006-2082
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
--- ./code/unix/unix_shared.c.orig Wed May 31 18:55:12 2006
|
|
+++ ./code/unix/unix_shared.c Wed May 31 18:55:13 2006
|
|
@@ -38,7 +38,7 @@
|
|
static char cdPath[MAX_OSPATH];
|
|
|
|
// Used to determine local installation path
|
|
-static char installPath[MAX_OSPATH];
|
|
+static char installPath[MAX_OSPATH] = DATADIR;
|
|
|
|
// Used to determine where to store user-specific files
|
|
static char homePath[MAX_OSPATH];
|
|
@@ -76,7 +76,7 @@
|
|
return curtime;
|
|
}
|
|
|
|
-#if defined(__linux__) && !defined(DEDICATED)
|
|
+// #if defined(__linux__) && !defined(DEDICATED)
|
|
/*
|
|
================
|
|
Sys_XTimeToSysTime
|
|
@@ -98,11 +98,15 @@
|
|
{
|
|
int ret, time, test;
|
|
|
|
+ /*
|
|
+ Let's try to comment out this and see what will happen :-)
|
|
+
|
|
if (!in_subframe->value)
|
|
{
|
|
// if you don't want to do any event times corrections
|
|
return Sys_Milliseconds();
|
|
}
|
|
+ */
|
|
|
|
// test the wrap issue
|
|
#if 0
|
|
@@ -136,10 +140,10 @@
|
|
|
|
return ret;
|
|
}
|
|
-#endif
|
|
+// #endif
|
|
|
|
//#if 0 // bk001215 - see snapvector.nasm for replacement
|
|
-#if (defined __APPLE__) // rcg010206 - using this for PPC builds...
|
|
+#ifndef __i386__ // rcg010206 - using this for PPC builds...
|
|
long fastftol( float f ) { // bk001213 - from win32/win_shared.c
|
|
//static int tmp;
|
|
// __asm fld f
|