Commit 8e4be283 authored by Guillaume Quintard's avatar Guillaume Quintard

Remove useless memcpy

parent 82ad97ab
......@@ -266,7 +266,6 @@ str_decode(struct hpk_iter *iter, struct txt *t)
/* XXX: do we care? */
t->ptr = realloc(t->ptr, num + 1L);
AN(t->ptr);
memcpy(t->ptr, t->ptr, num);
} else { /* literal string */
t->huff = 0;
t->ptr = malloc(num + 1L);
......
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