Skip to content

Commit

Permalink
Codechange: replace grow() usage in ClientNetworkContentSocketHandler…
Browse files Browse the repository at this point in the history
…::OnReceiveData()
  • Loading branch information
glx22 authored and LordAro committed May 4, 2019
1 parent d0d4fc7 commit 212140b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/network_content.cpp
Expand Up @@ -574,7 +574,7 @@ void ClientNetworkContentSocketHandler::OnReceiveData(const char *data, size_t l
if (this->http_response_index == -1) {
if (data != nullptr) {
/* Append the rest of the response. */
memcpy(grow(this->http_response, (uint)length), data, length);
this->http_response.insert(this->http_response.end(), data, data + length);
return;
} else {
/* Make sure the response is properly terminated. */
Expand Down

0 comments on commit 212140b

Please sign in to comment.