mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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:
parent
486636c37b
commit
8b10660c85
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue