From 466210998004e5a32e6a0d7e28260e8af24a7b68 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Thu, 7 Jan 2016 19:42:47 +0100 Subject: [PATCH] Fix an out of bound buffer index --- amxmodx/format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/format.cpp b/amxmodx/format.cpp index 3878949d..cb275d87 100644 --- a/amxmodx/format.cpp +++ b/amxmodx/format.cpp @@ -688,7 +688,7 @@ reswitch: auto currParam = params[arg++]; lang = playerlang(*get_amxaddr(amx, currParam)); if (!lang) - lang = get_amxstring(amx, currParam, 4, len); + lang = get_amxstring(amx, currParam, 2, len); } else {