Fixed DumpMemory() function to no longer use undeclared yet variable mem_size
This commit is contained in:
parent
88d0e06e4a
commit
51cbe4a6f3
2
main.c
2
main.c
@ -11,7 +11,7 @@ long GetFileSize(FILE* f){
|
|||||||
|
|
||||||
void DumpMemory(char *memory, char *filename){
|
void DumpMemory(char *memory, char *filename){
|
||||||
FILE *dump = fopen(filename, "wb");
|
FILE *dump = fopen(filename, "wb");
|
||||||
fwrite(memory, 1, mem_size, dump);
|
fwrite(memory, 1, strlen(memory), dump);
|
||||||
fclose(dump);
|
fclose(dump);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user