Fixed DumpMemory() function to no longer use undeclared yet variable mem_size

This commit is contained in:
Marcelina Szostak 2025-04-18 18:44:53 +02:00
parent 88d0e06e4a
commit 51cbe4a6f3
Signed by: kapcioszek
GPG Key ID: 5B07EB46181A963B

2
main.c
View File

@ -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);
} }