From 8b10660c8548727e253d034c3d55c48ca87fe81c Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 15 Jul 2005 18:21:17 +0000 Subject: [PATCH] last bugfix did forget use tchar * 512 in malloc I did only use 512 in malloc svn path=/trunk/; revision=16587 --- reactos/subsys/system/cmd/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/copy.c b/reactos/subsys/system/cmd/copy.c index 4613e856647..60af3368f05 100644 --- a/reactos/subsys/system/cmd/copy.c +++ b/reactos/subsys/system/cmd/copy.c @@ -274,7 +274,7 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param) 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);