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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/byte_source.c b/src/byte_source.c
index 2e2499f5..5fdfb3b1 100644
--- a/src/byte_source.c
+++ b/src/byte_source.c
@@ -15,9 +15,13 @@
*/
#include "byte_source.h"
+#include "system.h"
#include "serd_internal.h"
+#include <stdlib.h>
+#include <string.h>
+
SerdStatus
serd_byte_source_page(SerdByteSource* source)
{
@@ -58,7 +62,7 @@ serd_byte_source_open_source(SerdByteSource* source,
source->from_stream = true;
if (page_size > 1) {
- source->file_buf = (uint8_t*)serd_bufalloc(page_size);
+ source->file_buf = (uint8_t*)serd_allocate_buffer(page_size);
source->read_buf = source->file_buf;
memset(source->file_buf, '\0', page_size);
} else {