basevotes: Fix buffer size for workshop obtained levels. (#956)

This commit is contained in:
Ҝờţأķ 2019-03-04 04:00:24 +05:00 committed by Kyle Sanderson
parent ae0a03d438
commit 7f9ceaac06
2 changed files with 4 additions and 4 deletions

View File

@ -266,7 +266,7 @@ public int Handler_VoteCallback(Menu menu, MenuAction action, int param1, int pa
}
else if (action == MenuAction_VoteEnd)
{
char item[64], display[64];
char item[PLATFORM_MAX_PATH], display[64];
float percent, limit;
int votes, totalVotes;
@ -420,7 +420,7 @@ bool TestVoteDelay(int client)
public Action Timer_ChangeMap(Handle timer, DataPack dp)
{
char mapname[65];
char mapname[PLATFORM_MAX_PATH];
dp.Reset();
dp.ReadString(mapname, sizeof(mapname));

View File

@ -141,7 +141,7 @@ public int MenuHandler_Map(Menu menu, MenuAction action, int param1, int param2)
}
else if (action == MenuAction_DrawItem)
{
char info[32], name[32];
char info[PLATFORM_MAX_PATH], name[32];
menu.GetItem(param2, info, sizeof(info), _, name, sizeof(name));
@ -156,7 +156,7 @@ public int MenuHandler_Map(Menu menu, MenuAction action, int param1, int param2)
}
else if (action == MenuAction_Select)
{
char info[32], name[32];
char info[PLATFORM_MAX_PATH], name[32];
menu.GetItem(param2, info, sizeof(info), _, name, sizeof(name));