From e3b27ecd161c8b87d327bd70bc25c6cf7a760fff Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 27 Mar 2011 20:08:09 +0000 Subject: [PATCH] apparently fix some situations where too many cheat codes are entered. codr's patch 3200856 --- desmume/src/cheatSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/cheatSystem.cpp b/desmume/src/cheatSystem.cpp index 45828b05e..3f6409ec1 100644 --- a/desmume/src/cheatSystem.cpp +++ b/desmume/src/cheatSystem.cpp @@ -1,4 +1,4 @@ -/* Copyright 2009-2010 DeSmuME team +/* Copyright 2009-2011 DeSmuME team This file is part of DeSmuME @@ -400,7 +400,7 @@ BOOL CHEATS::XXcodePreParser(CHEATS_LIST *list, char *code) { int count = 0; u16 t = 0; - char tmp_buf[sizeof(list->code)]; + char tmp_buf[sizeof(list->code) * 2 + 1]; memset(tmp_buf, 0, sizeof(tmp_buf)); size_t code_len = strlen(code);