diff --git a/src/libs/utils/process_ctrlc_stub.cpp b/src/libs/utils/process_ctrlc_stub.cpp index aca350a777803fd04b1bf22859bd1def2b7500a5..8a768cf7679ec76c171372ef39d8c8aae571ca89 100644 --- a/src/libs/utils/process_ctrlc_stub.cpp +++ b/src/libs/utils/process_ctrlc_stub.cpp @@ -95,12 +95,7 @@ int main(int argc, char **) return 1; if (!findFirst(strCommandLine, strCommandLineLength, pos, L" \t", pos)) return 1; -#ifdef Q_CC_MSVC - wmemmove_s(strCommandLine, strCommandLineLength, strCommandLine + pos + 1, strCommandLineLength - pos); -#else - wmemmove(strCommandLine, strCommandLine + pos + 1, strCommandLineLength - pos); -#endif - bool bSuccess = startProcess(strCommandLine); + bool bSuccess = startProcess(strCommandLine + pos + 1); free(strCommandLine); if (!bSuccess)