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.

This commit is contained in:
Zack Middleton 2012-01-17 23:06:06 +00:00
parent 73744a84c6
commit 5729c8c518
2 changed files with 3 additions and 3 deletions

View file

@ -520,9 +520,9 @@ CG_RegisterClientModelname
==========================
*/
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;

View file

@ -972,7 +972,7 @@ UI_RegisterClientSkin
==========================
*/
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 );