aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index eca385e48..c7e89d0a8 100644
--- a/lib/pingpong.c
+++ b/lib/pingpong.c
@@ -377,7 +377,7 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd,
/* This is the end of the last line, copy the last line to the
start of the buffer and zero terminate, for old times sake */
size_t n = ptr - pp->linestart_resp;
- memcpy(buf, pp->linestart_resp, n);
+ memmove(buf, pp->linestart_resp, n);
buf[n]=0; /* zero terminate */
keepon=FALSE;
pp->linestart_resp = ptr+1; /* advance pointer */