aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index e97929e7..6e535402 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -181,8 +181,8 @@ serd_bulk_sink_write(const void* buf, size_t len, SerdBulkSink* bsink)
// Write as much as possible into the remaining buffer space
memcpy(bsink->buf + bsink->size, buf, n);
bsink->size += n;
- buf = (uint8_t*)buf + n;
- len -= n;
+ buf = (uint8_t*)buf + n;
+ len -= n;
// Flush page if buffer is full
if (bsink->size == bsink->block_size) {