Copy the correct number of bytes.
Modified: trunk/reactos/lib/crt/process/process.c
_____
Modified: trunk/reactos/lib/crt/process/process.c
--- trunk/reactos/lib/crt/process/process.c 2006-01-13 23:24:39 UTC
(rev 20840)
+++ trunk/reactos/lib/crt/process/process.c 2006-01-13 23:28:08 UTC
(rev 20841)
@@ -126,7 +126,7 @@
for(i = 0; argv[i]; i++)
{
len = _tcslen(argv[i]);
- memcpy(ptr, argv[i], len);
+ memcpy(ptr, argv[i], len * sizeof(_TCHAR));
ptr += len;
*ptr++ = delim;
}
@@ -162,7 +162,7 @@
do
{
len = _tcslen(arg0);
- memcpy(ptr, arg0, len);
+ memcpy(ptr, arg0, len * sizeof(_TCHAR));
ptr += len;
*ptr++ = delim;
arg0 = va_arg(alist2, _TCHAR*);
Show replies by date