summaryrefslogtreecommitdiff
path: root/src/platform/file.c
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-17 14:45:31 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-17 14:45:31 +1000
commitf8641a5cc4c8baf1f0a7be3685afc219d90143d9 (patch)
tree6f6edf43f88b456933330ec83a203bf2f414bea4 /src/platform/file.c
parentb9315f9cb625db09c3c41d8adf5230a67510bef7 (diff)
whole thing is compiling and running again
Diffstat (limited to 'src/platform/file.c')
-rw-r--r--src/platform/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/file.c b/src/platform/file.c
index 33194d7..ea69e20 100644
--- a/src/platform/file.c
+++ b/src/platform/file.c
@@ -51,7 +51,7 @@ str8_opt str8_from_file(arena *a, Str8 path) {
rewind(f);
u8 *raw = arena_alloc(a, fsize + 1);
- Str8 contents = str8_create(raw, fsize);
+ Str8 contents = Str8_create(raw, fsize);
contents.buf[contents.len] = '\0';
fread(raw, fsize, 1, f);