Author: hbelusca
Date: Sat May 3 17:22:35 2014
New Revision: 63134
URL:
http://svn.reactos.org/svn/reactos?rev=63134&view=rev
Log:
[FTP]
Fix some strncat usage.
Patch by Victor Martinez.
CORE-8145 #resolve
Modified:
trunk/reactos/base/applications/network/ftp/cmds.c
Modified: trunk/reactos/base/applications/network/ftp/cmds.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] Sat May 3 17:22:35
2014
@@ -1303,13 +1303,13 @@
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 );