mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 14:51:44 +00:00
[FTP]
Fix some strncat usage. Patch by Victor Martinez. CORE-8145 #resolve svn path=/trunk/; revision=63134
This commit is contained in:
parent
ea3f9d6c6e
commit
6a206e692a
1 changed files with 3 additions and 3 deletions
|
@ -1303,13 +1303,13 @@ void shell(int argc, const char *argv[])
|
|||
|
||||
if (argc > 1)
|
||||
{
|
||||
strncat(CmdLine, " /C", MAX_PATH);
|
||||
strncat(CmdLine, " /C", MAX_PATH - wcslen(Cmdline) - 1);
|
||||
}
|
||||
|
||||
for (i=1; i<argc; i++)
|
||||
{
|
||||
strncat(CmdLine, " ", MAX_PATH);
|
||||
strncat(CmdLine, argv[i], MAX_PATH);
|
||||
strncat(CmdLine, " ", MAX_PATH - wsclen(Cmdline) - 1);
|
||||
strncat(CmdLine, argv[i], MAX_PATH - wsclen(Cmdline) -1);
|
||||
}
|
||||
|
||||
StartupInfo.cb = sizeof( StartupInfo );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue