From d4703f045d892024662d0022ed9a62046412d470 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 4 Mar 2007 00:02:23 +0000 Subject: [PATCH] fixed a bug where '%c' did not correctly count toward the writable string length --- amxmodx/format.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/amxmodx/format.cpp b/amxmodx/format.cpp index 441ab2c8..62ffcbe1 100644 --- a/amxmodx/format.cpp +++ b/amxmodx/format.cpp @@ -403,6 +403,7 @@ reswitch: case 'c': CHECK_ARGS(0); *buf_p++ = static_cast(*get_amxaddr(amx, params[arg])); + llen--; arg++; break; case 'd':