apparently fix some situations where too many cheat codes are entered. codr's patch 3200856
This commit is contained in:
parent
bd5cccef40
commit
e3b27ecd16
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue