Skip to content

Commit

Permalink
Fix an another warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Mar 23, 2022
1 parent 66d4063 commit 174326d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io/http_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 174326d

Please sign in to comment.