Merge pull request #7043 from fgeds/patch-1

control ini filename trimmed to the wrong size
This commit is contained in:
Unknown W. Brackets committed 2014-11-02 13:36:24 -08:00
commit e8f83ab4e8
1 file changed
+1 -1
+1 -1
View File
@@ -414,7 +414,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
}
if (wideArgs[i].find(controlsOption) != std::wstring::npos && wideArgs[i].size() > controlsOption.size()) {
const std::wstring tempWide = wideArgs[i].substr(configOption.size());
const std::wstring tempWide = wideArgs[i].substr(controlsOption.size());
const std::string tempStr = ConvertWStringToUTF8(tempWide);
std::strncpy(controlsConfigFilename, tempStr.c_str(), MAX_PATH);
}