]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
httpc: use memmove for overlapping areas
authorJaroslav Kysela <perex@perex.cz>
Wed, 18 Nov 2015 09:20:32 +0000 (10:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 18 Nov 2015 09:20:32 +0000 (10:20 +0100)
src/httpc.c

index 109528aed12bbb8e5c755896757692c29eefd7a8..3f2d434509dc3f657796e95f0e30012205d69191 100644 (file)
@@ -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;
     }