aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c
index 849d4e7c..f538e486 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -243,7 +243,8 @@ write_text(SerdWriter* writer, TextContext ctx,
static size_t
uri_sink(const void* buf, size_t len, void* stream)
{
- return write_text((SerdWriter*)stream, WRITE_URI, buf, len);
+ return write_text((SerdWriter*)stream, WRITE_URI,
+ (const uint8_t*)buf, len);
}
static void
@@ -746,7 +747,7 @@ size_t
serd_chunk_sink(const void* buf, size_t len, void* stream)
{
SerdChunk* chunk = (SerdChunk*)stream;
- chunk->buf = realloc((uint8_t*)chunk->buf, chunk->len + len);
+ chunk->buf = (uint8_t*)realloc((uint8_t*)chunk->buf, chunk->len + len);
memcpy((uint8_t*)chunk->buf + chunk->len, buf, len);
chunk->len += len;
return len;