projects
/
platform
/
upstream
/
libaec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b8d702
)
Use memmove since areas overlap.
author
Mathis Rosenhauer
<rosenhauer@dkrz.de>
Mon, 28 Jul 2014 11:07:29 +0000
(13:07 +0200)
committer
Mathis Rosenhauer
<rosenhauer@dkrz.de>
Mon, 28 Jul 2014 11:07:29 +0000
(13:07 +0200)
src/sz_compat.c
patch
|
blob
|
history
diff --git
a/src/sz_compat.c
b/src/sz_compat.c
index
270c1f1
..
0650182
100644
(file)
--- 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) {
- mem
cpy
((char *)buf + i, (char *)buf + j, line_size);
+ mem
move
((char *)buf + i, (char *)buf + j, line_size);
i += line_size;
}
return i;