diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-12-24 21:29:18 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-12-24 21:29:18 +0100 |
commit | 2618e4caaee451c83dbe9fc033cf9e3e77a41851 (patch) | |
tree | 1042747fc2120b396fbd526dbb0b512433ae10c9 /lib/pingpong.c | |
parent | 08e57f916cb395485fbcd7158d3d954b02501e0f (diff) | |
download | curl-2618e4caaee451c83dbe9fc033cf9e3e77a41851.tar.gz |
Curl_pp_readresp: use memmove not memcpy, possibly overlapping areas
Fixes commit 1deac31eba7
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r-- | lib/pingpong.c | 2 |
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 */ |