aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-19 17:55:02 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit0f9816d67bc67a396607291f845ca2a33c2285a7 (patch)
treeb31fd1b344305dc984a2109084fa183573a0ae43 /src/buffer.c
parent258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff)
downloadserd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip
Use ZixAllocator directly
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index c16a0ad6..64510d43 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1,9 +1,8 @@
// Copyright 2011-2021 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
-#include "memory.h"
-
#include "serd/buffer.h"
+#include "zix/allocator.h"
#include <assert.h>
#include <stddef.h>
@@ -22,7 +21,7 @@ serd_buffer_write(const void* const buf,
const size_t n_bytes = size * nmemb;
char* const new_buf =
- (char*)serd_arealloc(buffer->allocator, buffer->buf, buffer->len + n_bytes);
+ (char*)zix_realloc(buffer->allocator, buffer->buf, buffer->len + n_bytes);
if (new_buf) {
memcpy(new_buf + buffer->len, buf, n_bytes);