Skip to content
Permalink
Browse files

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

  • Loading branch information...
TheByKotik authored and KyleSanderson committed Mar 3, 2019
1 parent ae0a03d commit 7f9ceaac06ae201c5b76638ee7f9152128c9eb74
Showing with 4 additions and 4 deletions.
  1. +2 −2 plugins/basevotes.sp
  2. +2 −2 plugins/basevotes/votemap.sp
@@ -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));
@@ -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));

0 comments on commit 7f9ceaa

Please sign in to comment.
You can’t perform that action at this time.