Change memcpy to memmove
Signed-off-by: Florian Chivé <62927863+Faholan@users.noreply.github.com>
This commit is contained in:
parent
65c2943191
commit
335b305149
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue