summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathis Rosenhauer <rosenhauer@dkrz.de>2014-07-28 13:07:29 +0200
committerMathis Rosenhauer <rosenhauer@dkrz.de>2014-07-28 13:07:29 +0200
commitc05914ae76bfd82e3845f86aac5685ef453d220d (patch)
tree01907fb9efdfaee8d25463f3e844a295e473b64b /src
parent8b8d702e5fc196af21d32fd85b6353a01b8f7f9f (diff)
downloadlibaec-c05914ae76bfd82e3845f86aac5685ef453d220d.tar.gz
libaec-c05914ae76bfd82e3845f86aac5685ef453d220d.tar.bz2
libaec-c05914ae76bfd82e3845f86aac5685ef453d220d.zip
Use memmove since areas overlap.
Diffstat (limited to 'src')
-rw-r--r--src/sz_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sz_compat.c b/src/sz_compat.c
index 270c1f1..0650182 100644
--- a/src/sz_compat.c
+++ b/src/sz_compat.c
@@ -98,7 +98,7 @@ static size_t remove_padding(void *buf, size_t total,
i = line_size;
for (j = padded_line_size; j < total; j += padded_line_size) {
- memcpy((char *)buf + i, (char *)buf + j, line_size);
+ memmove((char *)buf + i, (char *)buf + j, line_size);
i += line_size;
}
return i;