freebsd-ports/games/q3cellshading/files/patch-code-cgame-cg_weapons.c
Alejandro Pulver ac2c14f932 - Update to version 1.32c (security patch, see below).
- 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
2006-06-03 14:51:46 +00:00

23 lines
795 B
C

--- ./code/cgame/cg_weapons.c.orig Wed May 31 18:55:11 2006
+++ ./code/cgame/cg_weapons.c Wed May 31 19:05:20 2006
@@ -656,17 +656,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 );