fix a bug in applying some IPS files

This commit is contained in:
zeromus 2022-08-28 04:41:45 -04:00
parent 60f7b875f8
commit 069727c191
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}