Merge pull request #8543 from jordan-woyak/gcode-download-minor-fix

Core/GeckoCode: Fix DownloadCodes function assuming HTTP data is null terminated.
This commit is contained in:
Léo Lam 2020-01-04 10:18:44 +01:00 committed by GitHub
commit 671defd8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ std::vector<GeckoCode> DownloadCodes(std::string gametdb_id, bool* succeeded)
std::vector<GeckoCode> gcodes;
// parse the codes
std::istringstream ss(reinterpret_cast<const char*>(response->data()));
std::istringstream ss(std::string(response->begin(), response->end()));
std::string line;