mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: replace grow() usage in ClientNetworkContentSocketHandler::OnReceiveData()
This commit is contained in:
parent
d0d4fc73a7
commit
212140b88b
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue