diff options
author | Mathis Rosenhauer <rosenhauer@dkrz.de> | 2014-07-28 13:07:29 +0200 |
---|---|---|
committer | Mathis Rosenhauer <rosenhauer@dkrz.de> | 2014-07-28 13:07:29 +0200 |
commit | c05914ae76bfd82e3845f86aac5685ef453d220d (patch) | |
tree | 01907fb9efdfaee8d25463f3e844a295e473b64b /src | |
parent | 8b8d702e5fc196af21d32fd85b6353a01b8f7f9f (diff) | |
download | libaec-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.c | 2 |
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; |