Update read_entrie_file function

This commit is contained in:
2023-10-21 19:58:49 +01:00
parent 05e5a9ca21
commit cb9b6fd4dc
2 changed files with 4 additions and 2 deletions

View File

@@ -33,7 +33,9 @@ u64 get_file_length(FILE *fp) {
return length;
}
void read_entire_file(void *dst, u64 length, FILE *fp) {
void read_entire_file(void *dst, FILE *fp) {
u64 length = get_file_length(fp);
u64 current = ftell(fp);
fseek(fp, 0, SEEK_SET);