diff --git a/reactos/lib/crtdll/misc/GetArgs.c b/reactos/lib/crtdll/misc/GetArgs.c index 92f722b89c8..1b9a9d97f6e 100644 --- a/reactos/lib/crtdll/misc/GetArgs.c +++ b/reactos/lib/crtdll/misc/GetArgs.c @@ -94,6 +94,7 @@ int __GetMainArgs(int *argc,char ***argv,char ***env,int flag) __argc++; _acmdln_dll[i]='\0'; __argv[__argc-1] = strdup(_acmdln_dll + afterlastspace); + _acmdln_dll[i]=' '; i++; while (_acmdln_dll[i]==' ') i++; diff --git a/reactos/lib/msvcrt/misc/getargs.c b/reactos/lib/msvcrt/misc/getargs.c index f969bd152bf..27c059c48fc 100644 --- a/reactos/lib/msvcrt/misc/getargs.c +++ b/reactos/lib/msvcrt/misc/getargs.c @@ -33,6 +33,7 @@ int __getmainargs(int *argc,char ***argv,char ***env,int flag) __argc++; _acmdln[i]='\0'; __argv[__argc-1] = strdup(_acmdln + afterlastspace); + _acmdln[i]=' '; i++; while (_acmdln[i]==' ') i++;