Fix an another warning.

This commit is contained in:
Relintai 2022-03-23 15:51:34 +01:00
parent 66d40632fe
commit 174326d6c3

View File

@ -717,7 +717,7 @@ PoolByteArray HTTPClient::read_response_body_chunk() {
ret.resize(chunk.size() - 2);
PoolByteArray::Write w = ret.write();
memcpy(w.ptr(), chunk.ptr(), chunk.size() - 2);
memcpy(w.ptr(), chunk.ptr(), ret.size());
chunk.clear();
}