mirror of
https://github.com/reactos/reactos.git
synced 2024-12-25 16:50:57 +00:00
Fixed crash in environment variable evaluation.
svn path=/trunk/; revision=2822
This commit is contained in:
parent
2c38da05a1
commit
c19d6a953f
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: cmd.c,v 1.28 2001/10/14 18:30:28 phreak Exp $
|
||||
/* $Id: cmd.c,v 1.29 2002/04/05 12:53:21 ekohl Exp $
|
||||
*
|
||||
* CMD.C - command-line interface.
|
||||
*
|
||||
|
@ -768,8 +768,9 @@ ProcessInput (BOOL bFlag)
|
|||
break;
|
||||
|
||||
default:
|
||||
if ((tp == _tcschr(ip, _T('%'))) &&
|
||||
(tp <= _tcschr(ip, _T(' '))-1))
|
||||
tp = _tcschr(ip, _T('%'));
|
||||
if ((tp != NULL) &&
|
||||
(tp <= _tcschr(ip, _T(' ')) - 1))
|
||||
{
|
||||
char evar[512];
|
||||
*tp = _T('\0');
|
||||
|
|
Loading…
Reference in a new issue