From 73744a84c60ad3f45258c75b388b306a108340fd Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 17 Jan 2012 22:38:49 +0000 Subject: [PATCH] Fixed UI to use MAX_QPATH for skin filename buffer length. --- code/ui/ui_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ui/ui_main.c b/code/ui/ui_main.c index a8a4d869..e887c8cb 100644 --- a/code/ui/ui_main.c +++ b/code/ui/ui_main.c @@ -3608,7 +3608,7 @@ static int UI_MapCountByGameType(qboolean singlePlayer) { } qboolean UI_hasSkinForBase(const char *base, const char *team) { - char test[1024]; + char test[MAX_QPATH]; Com_sprintf( test, sizeof( test ), "models/players/%s/%s/lower_default.skin", base, team );