2001-05-02 21:20 UTC-0800 Ron Pinkas <ron@profit-master.com>

* source/pp/ppcore.c
     ! Corrected bug in getExpReal() where strings could be appended to an invalid expression.
This commit is contained in:
Ron Pinkas
2001-05-03 14:31:58 +00:00
parent 17b49c55cc
commit 15c9e85a2e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2001-05-03 07:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/pp/ppcore.c
+ Added missing valid string prefix (|) in getExpReal()
2001-05-02 21:20 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/pp/ppcore.c
! Corrected bug in getExpReal() where strings could be appended to an invalid expression.

View File

@@ -1873,7 +1873,7 @@ static int getExpReal( char * expreal, char ** ptri, BOOL prlist, int maxrez, BO
while( **ptri != '\0' && !rez && lens < maxrez )
{
/* Added by Ron Pinkas 2000-11-08 ( removed lots of related scattered logic below! */
if( State == STATE_EXPRES || strchr( "({[,$!#=<>^%*/+-", cLastChar ) ) /* Ron Pinkas added if on State 2001-05-02 to avoid multiple strings concatination. */
if( State == STATE_EXPRES || strchr( "({[|,$!#=<>^%*/+-", cLastChar ) ) /* Ron Pinkas added if on State 2001-05-02 to avoid multiple strings concatination. */
{
if( **ptri == '"' )
{