diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2020-01-01 15:49:51 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2020-01-03 20:14:10 -0600 |
| commit | b505004d613c8a4d24da3d39860b09f65d0fa8c7 (patch) | |
| tree | b5e9a23382d8e80e6d899f4905e73d6642a92520 /Source/Core | |
| parent | 7a6a4510f6eed48652200f8c83e79723ae3581f2 (diff) | |
Core/GeckoCode: Fix DownloadCodes function assuming HTTP data is null terminated.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/GeckoCodeConfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/GeckoCodeConfig.cpp b/Source/Core/Core/GeckoCodeConfig.cpp index 937b13a406..a096e722d2 100644 --- a/Source/Core/Core/GeckoCodeConfig.cpp +++ b/Source/Core/Core/GeckoCodeConfig.cpp @@ -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; |
