diff --git a/amxmodx/format.cpp b/amxmodx/format.cpp index 568d1dde..8b8edc5d 100644 --- a/amxmodx/format.cpp +++ b/amxmodx/format.cpp @@ -374,7 +374,7 @@ reswitch: const char *def = translate(amx, addr, key); size_t written = atcprintf(buf_p, llen, def, amx, params, &arg); buf_p += written; - maxlen -= written; + llen -= written; break; } case '%':