mirror of
https://github.com/curl/curl.git
synced 2026-08-14 06:12:23 +03:00
Andrew Moise filed bug report #1847501
(http://curl.haxx.se/bug/view.cgi?id=1847501) and pointed out a memcpy() that should be memmove() in the convert_lineends() function.
This commit is contained in:
parent
71b105ceb1
commit
b0b40d9a00
3 changed files with 7 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ static size_t convert_lineends(struct SessionHandle *data,
|
|||
if(*startPtr == '\n') {
|
||||
/* This block of incoming data starts with the
|
||||
previous block's LF so get rid of it */
|
||||
memcpy(startPtr, startPtr+1, size-1);
|
||||
memmove(startPtr, startPtr+1, size-1);
|
||||
size--;
|
||||
/* and it wasn't a bare CR but a CRLF conversion instead */
|
||||
data->state.crlf_conversions++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue