From cc0db05bddef9f97747abe937bdfdddcd49eefc1 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Fri, 19 May 2023 13:55:56 +0300 Subject: [PATCH] examples/http_chunked_compression.c: fixed void pointer arithmetic --- src/examples/http_chunked_compression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }