diff options
author | glx <glx@openttd.org> | 2019-05-03 16:55:11 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-05-04 19:50:53 +0100 |
commit | 212140b88bc08172b4f90ccfcde0c6d479adbb55 (patch) | |
tree | f4a08dbaf7642c2ccc521c919936f76aee9fd620 /src | |
parent | d0d4fc73a7e06d6be1426e574ea21b850399105e (diff) | |
download | openttd-212140b88bc08172b4f90ccfcde0c6d479adbb55.tar.xz |
Codechange: replace grow() usage in ClientNetworkContentSocketHandler::OnReceiveData()
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_content.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 8768d314e..762a8c308 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -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. */ |