From 3cdaa2e338fcace334ab0ba602607b2ed9e9a7a8 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 21 May 2010 10:27:16 -0400 Subject: [PATCH] bugfix -- create Matches with longest_match_ovector not the temporary ovector --- tmpl/parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmpl/parser.cc b/tmpl/parser.cc index 138a441..05c6eb9 100644 --- a/tmpl/parser.cc +++ b/tmpl/parser.cc @@ -130,7 +130,7 @@ bool I_CLASSNAME::parse(istream & i) return false; } 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); if (token.isNull()) {