Fixed bug at21914 (faluco)
This commit is contained in:
parent
4040410c97
commit
9e4b1661e3
@ -1189,6 +1189,7 @@ static int command(void)
|
|||||||
#endif
|
#endif
|
||||||
#if !defined NO_DEFINE
|
#if !defined NO_DEFINE
|
||||||
case tpDEFINE: {
|
case tpDEFINE: {
|
||||||
|
int flag=0;
|
||||||
ret=CMD_DEFINE;
|
ret=CMD_DEFINE;
|
||||||
if (!SKIPPING) {
|
if (!SKIPPING) {
|
||||||
char *pattern,*substitution;
|
char *pattern,*substitution;
|
||||||
@ -1200,7 +1201,13 @@ static int command(void)
|
|||||||
lptr++;
|
lptr++;
|
||||||
start=lptr; /* save starting point of the match pattern */
|
start=lptr; /* save starting point of the match pattern */
|
||||||
count=0;
|
count=0;
|
||||||
while (*lptr>' ' && *lptr!='\0') {
|
while (*lptr!='\0') {
|
||||||
|
if (*lptr=='(')
|
||||||
|
flag=1;
|
||||||
|
if (flag && *lptr==')')
|
||||||
|
flag=0;
|
||||||
|
if (!flag && *lptr<=' ')
|
||||||
|
break;
|
||||||
litchar(&lptr,0); /* litchar() advances "lptr" and handles escape characters */
|
litchar(&lptr,0); /* litchar() advances "lptr" and handles escape characters */
|
||||||
count++;
|
count++;
|
||||||
} /* while */
|
} /* while */
|
||||||
|
Loading…
Reference in New Issue
Block a user