diff options
| author | 2025-06-23 15:16:00 -0400 | |
|---|---|---|
| committer | 2025-06-23 15:16:00 -0400 | |
| commit | 3ea974dd51b1f01483bad6a4d115189928bbf4db (patch) | |
| tree | f541bfbf312b4d43a22b8f3944fb38664852870c /src/util/file | |
| parent | fc8df3fe9cd15fe7b0b86c6584e0b3fb487d6886 (diff) | |
| download | libnaunet-3ea974dd51b1f01483bad6a4d115189928bbf4db.tar.gz libnaunet-3ea974dd51b1f01483bad6a4d115189928bbf4db.tar.bz2 libnaunet-3ea974dd51b1f01483bad6a4d115189928bbf4db.zip | |
Buffer API refactor, C++ compat
- Add common_close() to tests.
Signed-off-by: Andrew Opalach <andrew@akon.city>
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; |