projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6662f37
)
[CMD]
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 7 Apr 2013 08:53:37 +0000
(08:53 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 7 Apr 2013 08:53:37 +0000
(08:53 +0000)
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
reactos/base/shell/cmd/path.c
patch
|
blob
|
history
diff --git
a/reactos/base/shell/cmd/path.c
b/reactos/base/shell/cmd/path.c
index
eb419a7
..
6d765ee
100644
(file)
--- a/
reactos/base/shell/cmd/path.c
+++ b/
reactos/base/shell/cmd/path.c
@@
-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);