aboutsummaryrefslogtreecommitdiff
path: root/zlib/examples/gzappend.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-04-12 16:24:10 +0100
committerNick Clifton <nickc@redhat.com>2022-04-12 16:24:10 +0100
commit8e6b35366073a1a71df805061ecf016cc915a9f9 (patch)
tree6ddbc8123ab4bdbcd3fba1a4c6e0f1091f66964e /zlib/examples/gzappend.c
parent63e0ee15a327b933a9e325908f6e5b334106290c (diff)
downloadgdb-8e6b35366073a1a71df805061ecf016cc915a9f9.zip
gdb-8e6b35366073a1a71df805061ecf016cc915a9f9.tar.gz
gdb-8e6b35366073a1a71df805061ecf016cc915a9f9.tar.bz2
Rebase the zlib sources to the 1.2.12 release
Diffstat (limited to 'zlib/examples/gzappend.c')
-rw-r--r--zlib/examples/gzappend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zlib/examples/gzappend.c b/zlib/examples/gzappend.c
index 662dec3..d7eea3e 100644
--- a/zlib/examples/gzappend.c
+++ b/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;
}