apparently fix some situations where too many cheat codes are entered. codr's patch 3200856

This commit is contained in:
zeromus 2011-03-27 20:08:09 +00:00
parent bd5cccef40
commit e3b27ecd16
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* Copyright 2009-2010 DeSmuME team /* Copyright 2009-2011 DeSmuME team
This file is part of DeSmuME This file is part of DeSmuME
@ -400,7 +400,7 @@ BOOL CHEATS::XXcodePreParser(CHEATS_LIST *list, char *code)
{ {
int count = 0; int count = 0;
u16 t = 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)); memset(tmp_buf, 0, sizeof(tmp_buf));
size_t code_len = strlen(code); size_t code_len = strlen(code);