gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 118/156: examples/http_chunked_compression.c: fixed void


From: gnunet
Subject: [libmicrohttpd] 118/156: examples/http_chunked_compression.c: fixed void pointer arithmetic
Date: Sun, 28 May 2023 17:52:51 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.

commit cc0db05bddef9f97747abe937bdfdddcd49eefc1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri May 19 13:55:56 2023 +0300

    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);
   }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]