Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/fceux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeromus <zeromus@users.noreply.github.com>2022-08-28 11:41:45 +0300
committerzeromus <zeromus@users.noreply.github.com>2022-08-28 11:41:45 +0300
commit069727c191ff76f799abff83c62681e59747a496 (patch)
tree7eb791822c1427f29098efa7a0e408d156e10ab8
parent60f7b875f80958248e7def8f200efd4ba60dd003 (diff)
fix a bug in applying some IPS files
-rw-r--r--src/file.cpp1
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);
}