Commit 554e891a authored by Nikias Bassen's avatar Nikias Bassen

bytearray: silence compiler warning about pointer arithmetic with cast

parent 97be452e
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment