From 335b305149900901fda29c02405429c790053de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Chiv=C3=A9?= <62927863+Faholan@users.noreply.github.com> Date: Thu, 29 May 2025 13:59:40 -0700 Subject: [PATCH] Change memcpy to memmove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Florian Chivé <62927863+Faholan@users.noreply.github.com> --- util/gzstream.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/gzstream.hh b/util/gzstream.hh index ec2ded6c..26e85352 100644 --- a/util/gzstream.hh +++ b/util/gzstream.hh @@ -117,7 +117,7 @@ public: int n_putback = gptr() - eback(); if ( n_putback > 4) n_putback = 4; - memcpy( buffer + (4 - n_putback), gptr() - n_putback, n_putback); + memmove( buffer + (4 - n_putback), gptr() - n_putback, n_putback); int num = gzread( file, buffer+4, bufferSize-4); if (num <= 0) // ERROR or EOF