last bugfix did forget use tchar * 512 in malloc I did only use 512 in malloc
Modified: trunk/reactos/subsys/system/cmd/copy.c

Modified: trunk/reactos/subsys/system/cmd/copy.c
--- trunk/reactos/subsys/system/cmd/copy.c	2005-07-15 18:18:40 UTC (rev 16586)
+++ trunk/reactos/subsys/system/cmd/copy.c	2005-07-15 18:21:17 UTC (rev 16587)
@@ -274,7 +274,7 @@
   nErrorLevel = 0;
 
   /* Get the envor value if it exists */
-  evar = malloc(512);
+  evar = malloc(512 * sizeof(TCHAR));
   if (evar==NULL) size = 0;
 
   size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);