[quake3-commits] r2216 - in trunk/code: cgame ui

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jan 17 18:06:06 EST 2012


Author: ztm
Date: 2012-01-17 18:06:06 -0500 (Tue, 17 Jan 2012)
New Revision: 2216

Modified:
   trunk/code/cgame/cg_players.c
   trunk/code/ui/ui_players.c
Log:
Changed three filename buffers to be MAX_QPATH (not MAX_QPATH*2), filename lengths are limited to MAX_QPATH by engine and elsewhere in game logic.

Modified: trunk/code/cgame/cg_players.c
===================================================================
--- trunk/code/cgame/cg_players.c	2012-01-17 22:38:49 UTC (rev 2215)
+++ trunk/code/cgame/cg_players.c	2012-01-17 23:06:06 UTC (rev 2216)
@@ -520,9 +520,9 @@
 ==========================
 */
 static qboolean CG_RegisterClientModelname( clientInfo_t *ci, const char *modelName, const char *skinName, const char *headModelName, const char *headSkinName, const char *teamName ) {
-	char	filename[MAX_QPATH*2];
+	char	filename[MAX_QPATH];
 	const char		*headName;
-	char newTeamName[MAX_QPATH*2];
+	char newTeamName[MAX_QPATH];
 
 	if ( headModelName[0] == '\0' ) {
 		headName = modelName;

Modified: trunk/code/ui/ui_players.c
===================================================================
--- trunk/code/ui/ui_players.c	2012-01-17 22:38:49 UTC (rev 2215)
+++ trunk/code/ui/ui_players.c	2012-01-17 23:06:06 UTC (rev 2216)
@@ -972,7 +972,7 @@
 ==========================
 */
 static qboolean	UI_RegisterClientSkin( playerInfo_t *pi, const char *modelName, const char *skinName, const char *headModelName, const char *headSkinName , const char *teamName) {
-	char		filename[MAX_QPATH*2];
+	char		filename[MAX_QPATH];
 
 	if (teamName && *teamName) {
 		Com_sprintf( filename, sizeof( filename ), "models/players/%s/%s/lower_%s.skin", modelName, teamName, skinName );



More information about the quake3-commits mailing list