Tokenization is not really well done. This is a temporary fix for parsing

answers from Innosoft servers, but expect better tokenization in the
future.
This commit is contained in:
Julio Sánchez Fernández 1999-06-21 10:08:03 +00:00
parent 52e69dfc14
commit fd15804f63

View File

@ -572,7 +572,12 @@ get_token(const char ** sp, char ** token_val)
default:
kind = TK_BAREWORD;
p = *sp;
while ( !isspace(**sp) && **sp != '\0' )
while ( !isspace(**sp) &&
**sp != '(' &&
**sp != ')' &&
**sp != '$' &&
**sp != '\'' &&
**sp != '\0' )
(*sp)++;
q = *sp;
res = LDAP_MALLOC(q-p+1);