Avoid an undefined behavior of memcpy() in gzappend().
This commit is contained in:
parent
3c46f5ddb5
commit
ae49d1472e
@ -137,7 +137,7 @@ local void rotate(unsigned char *list, unsigned len, unsigned rot)
|
||||
/* do simple left shift by one */
|
||||
if (rot == 1) {
|
||||
tmp = *list;
|
||||
memcpy(list, list + 1, len - 1);
|
||||
memmove(list, list + 1, len - 1);
|
||||
*last = tmp;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user