summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2016-02-15 13:58:18 -0800
committerMartin Michlmayr <tbm@cyrius.com>2016-02-15 13:58:18 -0800
commitc5f68caa9e4fa9fb1fc44a62af9aeace12206469 (patch)
tree978a828da976ff740726bddf0bd23637a275dfd6 /src/token.cc
parent82ef9dc388a9eb42e7e13b8d1a79c98b6e857ada (diff)
downloadfork-ledger-c5f68caa9e4fa9fb1fc44a62af9aeace12206469.tar.gz
fork-ledger-c5f68caa9e4fa9fb1fc44a62af9aeace12206469.tar.bz2
fork-ledger-c5f68caa9e4fa9fb1fc44a62af9aeace12206469.zip
Increase maximum length for regex
Fixes bug #981
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);