summaryrefslogtreecommitdiffstats
path: root/src/bytearray.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-13 01:49:17 +0100
committerGravatar Nikias Bassen2013-12-13 01:49:17 +0100
commit554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05 (patch)
treed408f582fdc9aa5785c54447206d1fb4a893ec80 /src/bytearray.c
parent97be452e053122347c055e4abc220d8c719723d8 (diff)
downloadlibplist-554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05.tar.gz
libplist-554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05.tar.bz2
bytearray: silence compiler warning about pointer arithmetic with cast
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;
}