Commit c05914ae authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Use memmove since areas overlap.

parent 8b8d702e
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment