summaryrefslogtreecommitdiffstats
path: root/compat/zlib/examples/gzappend.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/zlib/examples/gzappend.c')
-rw-r--r--compat/zlib/examples/gzappend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/zlib/examples/gzappend.c b/compat/zlib/examples/gzappend.c
index 662dec3..d7eea3e 100644
--- a/compat/zlib/examples/gzappend.c
+++ b/compat/zlib/examples/gzappend.c
@@ -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;
}