diff --git a/main.c b/main.c index e47afac..bac6fdf 100644 --- a/main.c +++ b/main.c @@ -11,7 +11,7 @@ long GetFileSize(FILE* f){ void DumpMemory(char *memory, char *filename){ FILE *dump = fopen(filename, "wb"); - fwrite(memory, 1, mem_size, dump); + fwrite(memory, 1, strlen(memory), dump); fclose(dump); }