From b505004d613c8a4d24da3d39860b09f65d0fa8c7 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 1 Jan 2020 15:49:51 -0600 Subject: [PATCH] Core/GeckoCode: Fix DownloadCodes function assuming HTTP data is null terminated. --- Source/Core/Core/GeckoCodeConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 DownloadCodes(std::string gametdb_id, bool* succeeded) std::vector gcodes; // parse the codes - std::istringstream ss(reinterpret_cast(response->data())); + std::istringstream ss(std::string(response->begin(), response->end())); std::string line;