Core/GeckoCode: Fix DownloadCodes function assuming HTTP data is null terminated.

This commit is contained in:
Jordan Woyak 2020-01-01 15:49:51 -06:00
parent 7a6a4510f6
commit b505004d61

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;