From 7f9ceaac06ae201c5b76638ee7f9152128c9eb74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D2=9C=E1=BB=9D=C5=A3=D8=A3=C4=B7?= <40791562+TheByKotik@users.noreply.github.com> Date: Mon, 4 Mar 2019 04:00:24 +0500 Subject: [PATCH] basevotes: Fix buffer size for workshop obtained levels. (#956) --- plugins/basevotes.sp | 4 ++-- plugins/basevotes/votemap.sp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/basevotes.sp b/plugins/basevotes.sp index 07c63b00..9f98c4b1 100644 --- a/plugins/basevotes.sp +++ b/plugins/basevotes.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)); diff --git a/plugins/basevotes/votemap.sp b/plugins/basevotes/votemap.sp index eaa3ae0d..7aa7ce72 100644 --- a/plugins/basevotes/votemap.sp +++ b/plugins/basevotes/votemap.sp @@ -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));