bugfix -- create Matches with longest_match_ovector not the temporary ovector

This commit is contained in:
Josh Holtrop 2010-05-21 10:27:16 -04:00
parent 3a3dc4074b
commit 3cdaa2e338

View File

@ -130,7 +130,7 @@ bool I_CLASSNAME::parse(istream & i)
return false; return false;
} }
Matches matches(tokens[longest_match_index].re, Matches matches(tokens[longest_match_index].re,
&buff[0], ovector, ovector_size); &buff[0], longest_match_ovector, ovector_size);
TokenRef token = buildToken(longest_match_index); TokenRef token = buildToken(longest_match_index);
if (token.isNull()) if (token.isNull())
{ {