mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +00:00
[CMD]
Fix a bug in path command where PATH variable could never be read if it was bigger than ENV_BUFFER_SIZE svn path=/trunk/; revision=58703
This commit is contained in:
parent
6662f375d1
commit
06b3d2634d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ INT cmd_path (LPTSTR param)
|
|||
else if (dwBuffer > ENV_BUFFER_SIZE)
|
||||
{
|
||||
pszBuffer = (LPTSTR)cmd_realloc (pszBuffer, dwBuffer * sizeof (TCHAR));
|
||||
GetEnvironmentVariable (_T("PATH"), pszBuffer, ENV_BUFFER_SIZE);
|
||||
GetEnvironmentVariable (_T("PATH"), pszBuffer, dwBuffer);
|
||||
}
|
||||
|
||||
ConOutPrintf (_T("PATH=%s\n"), pszBuffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue