diff --git a/amxmodx/format.cpp b/amxmodx/format.cpp index e5371b57..0b39384a 100644 --- a/amxmodx/format.cpp +++ b/amxmodx/format.cpp @@ -390,13 +390,16 @@ reswitch: } case '%': *buf_p++ = static_cast(ch); + llen--; break; case '\0': *buf_p++ = static_cast('%'); + llen--; goto done; break; default: *buf_p++ = static_cast(ch); + llen--; break; } }