summaryrefslogtreecommitdiffstats
path: root/src/bytearray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytearray.c')
-rw-r--r--src/bytearray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytearray.c b/src/bytearray.c
index 0abfe49..2c6ce4a 100644
--- a/src/bytearray.c
+++ b/src/bytearray.c
@@ -47,6 +47,6 @@ void byte_array_append(bytearray_t *ba, void *buf, size_t len)
ba->data = realloc(ba->data, ba->capacity + (len - remaining));
ba->capacity += (len - remaining);
}
- memcpy(ba->data+ba->len, buf, len);
+ memcpy(((char*)ba->data) + ba->len, buf, len);
ba->len += len;
}