1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 08:29:11 +00:00

Codechange: replace grow() usage in ClientNetworkContentSocketHandler::OnReceiveData()

This commit is contained in:
glx
2019-05-03 16:55:11 +02:00
committed by Charles Pigott
parent d0d4fc73a7
commit 212140b88b

View File

@@ -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. */