[ros-diffs] [greatlrd] 16587: last bugfix did forget use tchar * 512 in malloc I did only use 512 in malloc

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Fri Jul 15 20:21:59 CEST 2005


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);  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050715/71c4ee09/attachment.html


More information about the Ros-diffs mailing list