last bugfix did forget use tchar * 512 in malloc I did only use 512 in malloc

svn path=/trunk/; revision=16587
This commit is contained in:
Magnus Olsen 2005-07-15 18:21:17 +00:00
parent 486636c37b
commit 8b10660c85

View file

@ -274,7 +274,7 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
nErrorLevel = 0; nErrorLevel = 0;
/* Get the envor value if it exists */ /* Get the envor value if it exists */
evar = malloc(512); evar = malloc(512 * sizeof(TCHAR));
if (evar==NULL) size = 0; if (evar==NULL) size = 0;
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512); size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);