From d184ac5bd33dfa02b5c157d086b7dd0491aa5b1a Mon Sep 17 00:00:00 2001 From: nasr Date: Fri, 17 Apr 2026 13:35:00 +0200 Subject: checkpoint --- source/base/base_os.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/base/base_os.h') diff --git a/source/base/base_os.h b/source/base/base_os.h index 4f84d93..4357214 100644 --- a/source/base/base_os.h +++ b/source/base/base_os.h @@ -23,7 +23,7 @@ load_file(mem_arena *arena, const char *path) } - result = PushString(arena, sbuf.st_size); + result = PushString8(arena, sbuf.st_size); result.size = (u64)sbuf.st_size; if(result.size != 0) @@ -38,7 +38,6 @@ load_file(mem_arena *arena, const char *path) internal string8 write_file(const char *path, string8 data) { - string8 result = {0}; s32 file = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); if(file == -1) -- cgit v1.3