summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/token.cc')
-rw-r--r--src/token.cc4
1 files changed, 2 insertions, 2 deletions
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);