diff options
author | Nikias Bassen | 2013-12-13 01:49:17 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-13 01:49:17 +0100 |
commit | 554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05 (patch) | |
tree | d408f582fdc9aa5785c54447206d1fb4a893ec80 | |
parent | 97be452e053122347c055e4abc220d8c719723d8 (diff) | |
download | libplist-554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05.tar.gz libplist-554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05.tar.bz2 |
bytearray: silence compiler warning about pointer arithmetic with cast
-rw-r--r-- | src/bytearray.c | 2 |
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; } |