4c345ed272
- Use Makefile for building instead of scons, and remove Perl dependency. - Use pkg-plist. - Add OPTIONS. Allow to build without X11, threaded version, etc. - Fix building on non-i386 and FreeBSD 4.X. - Respect CFLAGS when optimizations are enabled. - Add patch to fix 2 security vulnerabilities [1]. PR: ports/98295 Submitted by: alepulver (myself) Approved by: maintainer (timeout) Obtained from: q3icculus (http://icculus.org/quake3/) [1] Security: CVE-2006-2082 [1]
23 lines
795 B
C
23 lines
795 B
C
--- ./code/cgame/cg_weapons.c.orig Wed May 31 20:52:06 2006
|
|
+++ ./code/cgame/cg_weapons.c Wed May 31 20:52:54 2006
|
|
@@ -636,17 +636,17 @@
|
|
}
|
|
|
|
strcpy( path, item->world_model[0] );
|
|
- COM_StripExtension( path, path );
|
|
+ COM_StripExtension( path, path, sizeof(path) );
|
|
strcat( path, "_flash.md3" );
|
|
weaponInfo->flashModel = trap_R_RegisterModel( path );
|
|
|
|
strcpy( path, item->world_model[0] );
|
|
- COM_StripExtension( path, path );
|
|
+ COM_StripExtension( path, path, sizeof(path) );
|
|
strcat( path, "_barrel.md3" );
|
|
weaponInfo->barrelModel = trap_R_RegisterModel( path );
|
|
|
|
strcpy( path, item->world_model[0] );
|
|
- COM_StripExtension( path, path );
|
|
+ COM_StripExtension( path, path, sizeof(path) );
|
|
strcat( path, "_hand.md3" );
|
|
weaponInfo->handsModel = trap_R_RegisterModel( path );
|
|
|