summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_headers_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_headers_parse.c')
-rw-r--r--src/libtipidee/tipidee_headers_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtipidee/tipidee_headers_parse.c b/src/libtipidee/tipidee_headers_parse.c
index eed0727..ca14ca5 100644
--- a/src/libtipidee/tipidee_headers_parse.c
+++ b/src/libtipidee/tipidee_headers_parse.c
@@ -165,7 +165,7 @@ static int tipidee_headers_parse_with (buffer *b, tipidee_headers *hdr, get1_fun
LOLDEBUG(" consecutive headers -> concatenating") ;
hdr->buf[start - 1] = ',' ;
hdr->buf[start] = ' ' ;
- memcpy(hdr->buf + start + 1, hdr->buf + header->right, hdr->len - header->right) ;
+ memmove(hdr->buf + start + 1, hdr->buf + header->right, hdr->len - header->right) ;
}
else
{
@@ -176,7 +176,7 @@ static int tipidee_headers_parse_with (buffer *b, tipidee_headers *hdr, get1_fun
memcpy(tmp, hdr->buf + start, len) ;
hdr->buf[start - 1] = ',' ;
hdr->buf[start] = ' ' ;
- memcpy(hdr->buf + start + 1, hdr->buf + header->right, hdr->len - header->right) ;
+ memmove(hdr->buf + start + 1, hdr->buf + header->right, hdr->len - header->right) ;
memcpy(hdr->buf + start + offset, tmp, len) ;
for (uint32_t i = prev + 1 ; i < hdr->n ; i++)
{