From 51ce96ac3caa4e2cdcef9ceb2762ae28975599f6 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 10 Aug 2007 14:55:44 +0000 Subject: [PATCH] Fix for amb775 - clcmdmenu used a buffer that was too small to generate the command (from 64 to 512) --- plugins/plmenu.sma | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/plmenu.sma b/plugins/plmenu.sma index a637022a..415940cc 100755 --- a/plugins/plmenu.sma +++ b/plugins/plmenu.sma @@ -792,16 +792,16 @@ public actionClcmdMenu(id, key) if (is_user_connected(player)) { - new command[64], authid[32], name[32], userid[32] + new command[512], authid[32], name[32], userid[32] - copy(command, 63, g_clcmdCmd[g_menuSelect[id][g_menuOption[id]]]) + copy(command, charsmax(command), g_clcmdCmd[g_menuSelect[id][g_menuOption[id]]]) get_user_authid(player, authid, 31) get_user_name(player, name, 31) num_to_str(get_user_userid(player), userid, 31) - replace(command, 63, "%userid%", userid) - replace(command, 63, "%authid%", authid) - replace(command, 63, "%name%", name) + replace(command, charsmax(command), "%userid%", userid) + replace(command, charsmax(command), "%authid%", authid) + replace(command, charsmax(command), "%name%", name) if (flags & 1) {