diff --git a/reactos/subsys/system/cmd/start.c b/reactos/subsys/system/cmd/start.c index cbb49695b49..eb16879e5b5 100644 --- a/reactos/subsys/system/cmd/start.c +++ b/reactos/subsys/system/cmd/start.c @@ -131,10 +131,13 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) return 1; } - memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K "), 5 * sizeof(TCHAR)); + memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K \""), 6 * sizeof(TCHAR)); memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)], szFullName, _tcslen(szFullName) * sizeof(TCHAR)); memcpy(&szFullCmdLine[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR)); szFullCmdLine[0] = _T('\"'); + szFullCmdLine[_tcslen(szFullCmdLine)] = _T('\"'); + + }