From a8b595c4d3e47aa942828a0afbc699c9e687b41e Mon Sep 17 00:00:00 2001 From: Peter Tissen Date: Sun, 2 Nov 2014 14:19:20 +0100 Subject: [PATCH] Fix copy paste error with that breaks controlconfig passing via cmdline This was discovered by fgeds here: http://forums.ppsspp.org/showthread.php?tid=13655 so all props go to him. --- Windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/main.cpp b/Windows/main.cpp index 0b6a5d0861..e19eb41318 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -416,7 +416,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::string tempStr = ConvertWStringToUTF8(tempWide); - std::strncpy(configFilename, tempStr.c_str(), MAX_PATH); + std::strncpy(controlsConfigFilename, tempStr.c_str(), MAX_PATH); } } }