From c5f68caa9e4fa9fb1fc44a62af9aeace12206469 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 15 Feb 2016 13:58:18 -0800 Subject: Increase maximum length for regex Fixes bug #981 --- src/token.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/token.cc') diff --git a/src/token.cc b/src/token.cc index 0bbff6ea..f616ae3e 100644 --- a/src/token.cc +++ b/src/token.cc @@ -303,8 +303,8 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags) kind = SLASH; } else { // terminal context // Read in the regexp - char buf[256]; - READ_INTO_(in, buf, 255, c, length, c != '/'); + char buf[4096]; + READ_INTO_(in, buf, 4095, c, length, c != '/'); if (c != '/') expected('/', c); in.get(c); -- cgit v1.2.3