From 8eb1bc19868371e5e3d8939be641024637e37edf Mon Sep 17 00:00:00 2001 From: Timothy O'Barr Date: Sun, 24 May 2020 00:09:11 -0600 Subject: [PATCH] Fix length_error crash in basic_string in the ini code. (#3411) --- common/src/Utilities/IniInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/Utilities/IniInterface.cpp b/common/src/Utilities/IniInterface.cpp index 1c32c09612..3fc5ff592f 100644 --- a/common/src/Utilities/IniInterface.cpp +++ b/common/src/Utilities/IniInterface.cpp @@ -170,7 +170,7 @@ void IniLoader::Entry(const wxString &var, uint &value, const uint defvalue) void IniLoader::Entry(const wxString &var, bool &value, const bool defvalue) { // TODO : Stricter value checking on enabled/disabled? - wxString dest(defvalue ? L"enabled" : L"disabled"); + wxString dest(defvalue ? "enabled" : "disabled", 8); if (m_Config) m_Config->Read(var, &dest, dest); value = (dest == L"enabled") || (dest == L"1");