aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/byte_source.c')
-rw-r--r--src/byte_source.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/byte_source.c b/src/byte_source.c
index 994556bd..84067752 100644
--- a/src/byte_source.c
+++ b/src/byte_source.c
@@ -15,6 +15,7 @@
*/
#include "byte_source.h"
+#include "system.h"
#include "serd_internal.h"
@@ -56,7 +57,7 @@ serd_byte_source_open_source(SerdByteSource* source,
source->from_stream = true;
if (page_size > 1) {
- source->file_buf = (char*)serd_bufalloc(page_size);
+ source->file_buf = (char*)serd_allocate_buffer(page_size);
source->read_buf = source->file_buf;
memset(source->file_buf, '\0', page_size);
} else {