Change memcpy to memmove

Signed-off-by: Florian Chivé <62927863+Faholan@users.noreply.github.com>
This commit is contained in:
Florian Chivé 2025-05-29 13:59:40 -07:00
parent 65c2943191
commit 335b305149
No known key found for this signature in database
GPG Key ID: C27BBA7C78E24037
1 changed files with 1 additions and 1 deletions

View File

@ -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