Speaking of that (1000s time), the proper way would be to convert
everything to UNICODE.
It would help.
Regards,
Aleksey Bragin
On 03.05.2014 21:24, hbelusca(a)svn.reactos.org wrote:
Author: hbelusca
Date: Sat May 3 17:24:22 2014
New Revision: 63135
URL:
http://svn.reactos.org/svn/reactos?rev=63135&view=rev
Log:
Arch, please do not mix up ANSI vs. UNICODE string functions, do you?
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:24:22
2014
@@ -1303,13 +1303,13 @@
if (argc > 1)
{
- strncat(CmdLine, " /C", MAX_PATH - wcslen(Cmdline) - 1);
+ strncat(CmdLine, " /C", MAX_PATH - strlen(Cmdline) - 1);
}
for (i=1; i<argc; i++)
{
- strncat(CmdLine, " ", MAX_PATH - wsclen(Cmdline) - 1);
- strncat(CmdLine, argv[i], MAX_PATH - wsclen(Cmdline) -1);
+ strncat(CmdLine, " ", MAX_PATH - strlen(Cmdline) - 1);
+ strncat(CmdLine, argv[i], MAX_PATH - strlen(Cmdline) -1);
}
StartupInfo.cb = sizeof( StartupInfo );