From: Jaroslav Kysela Date: Wed, 18 Nov 2015 09:20:32 +0000 (+0100) Subject: httpc: use memmove for overlapping areas X-Git-Tag: v4.2.1~1529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a77fcb5db2254e4c614d67b4f3dd660605940464;p=thirdparty%2Ftvheadend.git httpc: use memmove for overlapping areas --- diff --git a/src/httpc.c b/src/httpc.c index 109528aed..3f2d43450 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -1105,7 +1105,7 @@ rtsp_data: return http_client_flush(hc, res); res = HTTP_CON_RECEIVING; if (hc->hc_rpos < r + 4 || hc->hc_rbuf[r] != '$') { - memcpy(hc->hc_rbuf, hc->hc_rbuf + r, hc->hc_rpos - r); + memmove(hc->hc_rbuf, hc->hc_rbuf + r, hc->hc_rpos - r); hc->hc_rpos -= r; goto next_header; }