From e13734e869dde02f3d9bf3a9e3a4e9e2b05067bf Mon Sep 17 00:00:00 2001 From: jenzur Date: Tue, 14 Apr 2020 01:50:55 +0200 Subject: [PATCH] length fix --- .../scripting/unloze_ingame_poll_css_redux.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unloze_poll_votes/scripting/unloze_ingame_poll_css_redux.sp b/unloze_poll_votes/scripting/unloze_ingame_poll_css_redux.sp index 8653631c..df844889 100644 --- a/unloze_poll_votes/scripting/unloze_ingame_poll_css_redux.sp +++ b/unloze_poll_votes/scripting/unloze_ingame_poll_css_redux.sp @@ -133,7 +133,7 @@ public int menu_vote_poll_options(Menu menu, MenuAction action, int iclient, int { case MenuAction_Select: { - char info[32]; + char info[generic_length]; menu.GetItem(selection, info, sizeof(info)); int coloumn_index = StringToInt(info); mysql_insert_poll_vote(iclient, coloumn_index, admin_table_edit[iclient]); @@ -156,7 +156,7 @@ public int MenuHandler3(Menu menu, MenuAction action, int iclient3, int selectio { case MenuAction_Select: { - char info[32]; + char info[generic_length]; menu.GetItem(selection, info, sizeof(info)); //PrintToChat(iclient3, "admin_editing[iclient3]: %i \ninfo: %s", admin_editing[iclient3], info); switch(admin_editing[iclient3]) @@ -201,7 +201,7 @@ public int menu_edit_poll_options(Menu menu, MenuAction action, int iclient4, in { case MenuAction_Select: { - char info[32]; + char info[generic_length]; menu.GetItem(selection, info, sizeof(info)); if (StrContains(admin_table_coloumn_edit, "rewrite") != -1) { @@ -238,7 +238,7 @@ public int editpollmenu(Menu menu, MenuAction action, int iclient5, int selectio { case MenuAction_Select: { - char info[32]; + char info[generic_length]; menu.GetItem(selection, info, sizeof(info)); if (admin_editing[iclient5] == 7) {