diff options
author | zeromus <zeromus@users.noreply.github.com> | 2022-08-28 11:41:45 +0300 |
---|---|---|
committer | zeromus <zeromus@users.noreply.github.com> | 2022-08-28 11:41:45 +0300 |
commit | 069727c191ff76f799abff83c62681e59747a496 (patch) | |
tree | 7eb791822c1427f29098efa7a0e408d156e10ab8 | |
parent | 60f7b875f80958248e7def8f200efd4ba60dd003 (diff) |
fix a bug in applying some IPS files
-rw-r--r-- | src/file.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file.cpp b/src/file.cpp index 90d024da..e4d5b4f6 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -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);
}
|