diff options
Diffstat (limited to 'src/util/file')
| -rw-r--r-- | src/util/file/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/file/util.c b/src/util/file/util.c index cf2d31c..a2201a7 100644 --- a/src/util/file/util.c +++ b/src/util/file/util.c @@ -15,7 +15,7 @@ s32 nn_file_read_as_str(struct nn_file *file, str *out) s32 nn_file_read_as_c_str(struct nn_file *file, char **out) { size_t size = file->size; - *out = al_malloc(size + 1); + *out = (char *)al_malloc(size + 1); if (!nn_file_read(file, (void *)*out, size)) { al_free(*out); return -1; |