From adf12bf3487bdab41014d369922fcc39b50c396d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 10 Sep 2006 03:32:46 +0000 Subject: [PATCH] potential fix for am44179 (array is too small) --- plugins/cstrike/statsx.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 54900b29..f429a3c6 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -163,7 +163,7 @@ new g_izTeamGameStats[MAX_TEAMS][8] new g_izUserUserID[MAX_PLAYERS] = {0, ...} new g_izUserAttackerDistance[MAX_PLAYERS] = {0, ...} new g_izUserVictimDistance[MAX_PLAYERS][MAX_PLAYERS] -new g_izUserRndName[MAX_PLAYERS][MAX_NAME_LENGTH] +new g_izUserRndName[MAX_PLAYERS][MAX_NAME_LENGTH + 1] new g_izUserRndStats[MAX_PLAYERS][8] new g_izUserGameStats[MAX_PLAYERS][8] @@ -389,7 +389,7 @@ get_attackers(id, sBuffer[MAX_BUFFER_LENGTH + 1]) if (get_user_astats(id, iAttacker, izStats, izBody, t_sWpn, MAX_WEAPON_LENGTH)) { iFound = 1 - get_user_name(iAttacker, t_sName, 32) + get_user_name(iAttacker, t_sName, MAX_NAME_LENGTH) if (izStats[STATS_KILLS]) {