mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user