summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/gzappend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gzappend.c b/examples/gzappend.c
index 662dec3..d7eea3e 100644
--- a/examples/gzappend.c
+++ b/examples/gzappend.c
@@ -137,7 +137,7 @@ local void rotate(unsigned char *list, unsigned len, unsigned rot)
137 /* do simple left shift by one */ 137 /* do simple left shift by one */
138 if (rot == 1) { 138 if (rot == 1) {
139 tmp = *list; 139 tmp = *list;
140 memcpy(list, list + 1, len - 1); 140 memmove(list, list + 1, len - 1);
141 *last = tmp; 141 *last = tmp;
142 return; 142 return;
143 } 143 }