resetexstate crash fix
This commit is contained in:
parent
0d686906b6
commit
6cb352f626
|
@ -836,7 +836,7 @@ void AddExState(void *v, uint32 s, int type, char *desc)
|
|||
{
|
||||
if(desc)
|
||||
{
|
||||
SFMDATA[SFEXINDEX].desc=(char *)FCEU_malloc(5);
|
||||
SFMDATA[SFEXINDEX].desc=(char *)FCEU_malloc(strlen(desc)+1);
|
||||
strcpy(SFMDATA[SFEXINDEX].desc,desc);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue