fix a bug in applying some IPS files
This commit is contained in:
parent
60f7b875f8
commit
069727c191
|
@ -130,6 +130,7 @@ void ApplyIPS(FILE *ips, FCEUFILE* fp)
|
|||
char *newbuf=(char *)FCEU_realloc(buf,offset+size);
|
||||
buf=newbuf;
|
||||
memset(buf+fp->size,0,offset+size-fp->size);
|
||||
fp->size=offset+size;
|
||||
}
|
||||
fread(buf+offset,1,size,ips);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue