notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix state corruption
[fceu.git]
/
state.c
diff --git
a/state.c
b/state.c
index
deacbbf
..
ab2f0c9
100644
(file)
--- a/
state.c
+++ b/
state.c
@@
-289,9
+289,9
@@
void SaveState(void)
if(st!=NULL)
{
-
static
uint32 totalsize;
-
static
uint8 header[16]="FCS";
- memset(header+4,0,
13
);
+ uint32 totalsize;
+ uint8 header[16]="FCS";
+ memset(header+4,0,
sizeof(header)-4
);
header[3]=VERSION_NUMERIC;
fwrite(header,1,16,st);