diff --git a/src/examples/http_chunked_compression.c b/src/examples/http_chunked_compression.c index f6baf0fd..75a8139d 100644 --- a/src/examples/http_chunked_compression.c +++ b/src/examples/http_chunked_compression.c @@ -92,7 +92,7 @@ compress_buf (z_stream *strm, const void *src, size_t src_size, size_t *offset, return MHD_NO; } *dest = tmp_dest; - memcpy ((*dest) + ((*dest_size) - have), tmp, have); + memcpy (((char *) (*dest)) + ((*dest_size) - have), tmp, have); } while (0 == strm->avail_out); }