Commit a57b06c5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

inetcomm: Avoid overlapping memcpy (Coverity).

parent 45e00e55
......@@ -1613,13 +1613,13 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc
if(overlap == buf) /* 1st iteration */
{
memcpy(buf, buf + PARSER_BUF_SIZE - overlap_no, overlap_no);
memmove(buf, buf + PARSER_BUF_SIZE - overlap_no, overlap_no);
overlap = buf + overlap_no;
start += read - overlap_no;
}
else
{
memcpy(buf, buf + PARSER_BUF_SIZE, overlap_no);
memmove(buf, buf + PARSER_BUF_SIZE, overlap_no);
start += read;
}
} while(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment