diff --git a/amxmodx/string.cpp b/amxmodx/string.cpp index 9246abb4..41a35ab6 100755 --- a/amxmodx/string.cpp +++ b/amxmodx/string.cpp @@ -507,7 +507,7 @@ static cell AMX_NATIVE_CALL format(AMX *amx, cell *params) /* 3 param */ { /* copy back */ cell *old = get_amxaddr(amx, params[1]); - memcpy(old, g_cpbuf, total * sizeof(cell)); + memcpy(old, g_cpbuf, (total+1) * sizeof(cell)); } return total; }