diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-12-09 22:31:53 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-12-09 22:31:53 +0000 |
commit | b0b40d9a00bb3218408b190a387692e7ddfa028c (patch) | |
tree | fb1758ebd6471858997d9a99332eb65266074884 /lib/sendf.c | |
parent | 71b105ceb1091341e855c3eeb430b5c7d0321ebc (diff) |
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.
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index ddee1d7a2..b33277ac3 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -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++; |