(cheats.c) Fix buffer reallocation