diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-06-30 01:27:25 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-30 01:27:25 +1000 |
| commit | e388f01e1164aaaeca0f9375f4ad0288539122c5 (patch) | |
| tree | ce56e22b12f67599111e219feac2a3c8a3bb98b3 /Source/Core/Common/HttpRequest.cpp | |
| parent | f151570b2d4bdb5a45fd2bba76093040a79e98a7 (diff) | |
| parent | 5f0b4d8da5a852774a18f85707c064665974b701 (diff) | |
Merge pull request #8215 from CookiePLMonster/appverifier-sanitize
Fixed various errors spotted with Application Verifier
Diffstat (limited to 'Source/Core/Common/HttpRequest.cpp')
| -rw-r--r-- | Source/Core/Common/HttpRequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/HttpRequest.cpp b/Source/Core/Common/HttpRequest.cpp index b26a120b32..34ab47a095 100644 --- a/Source/Core/Common/HttpRequest.cpp +++ b/Source/Core/Common/HttpRequest.cpp @@ -221,8 +221,8 @@ HttpRequest::Response HttpRequest::Impl::Fetch(const std::string& url, Method me curl_easy_getinfo(m_curl.get(), CURLINFO_RESPONSE_CODE, &response_code); if (response_code != 200) { - ERROR_LOG(COMMON, "Failed to %s %s: server replied with code %li and body\n\x1b[0m%s", type, - url.c_str(), response_code, buffer.data()); + ERROR_LOG(COMMON, "Failed to %s %s: server replied with code %li and body\n\x1b[0m%.*s", type, + url.c_str(), response_code, static_cast<int>(buffer.size()), buffer.data()); return {}; } |
