[ros-diffs] [greatlrd] 16590: I should not write code when it is hot outside

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Fri Jul 15 20:38:08 CEST 2005


I should not write code when it is hot outside
clean up a if statement for realloc
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:31:42 UTC
(rev 16589)
+++ trunk/reactos/subsys/system/cmd/copy.c	2005-07-15 18:38:01 UTC
(rev 16590)
@@ -280,7 +280,7 @@

   {
    size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);  
   }
-  if ((size > 1) && (size > 512))
+  if (size > 512)
   {
     evar = realloc(evar,size * sizeof(TCHAR) );
     if (evar!=NULL)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050715/258f8ab2/attachment.html


More information about the Ros-diffs mailing list