summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-22 04:50:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-22 04:51:11 -0400
commit81f57ecc41c68bde967f8cc2312355c4626afcab (patch)
tree547c81c96f6f3676f0ef0847b5aa54efebc59ff5 /src/token.cc
parente124811d8a31292c06430815683b2e0fe87f7ceb (diff)
downloadfork-ledger-81f57ecc41c68bde967f8cc2312355c4626afcab.tar.gz
fork-ledger-81f57ecc41c68bde967f8cc2312355c4626afcab.tar.bz2
fork-ledger-81f57ecc41c68bde967f8cc2312355c4626afcab.zip
Correctly accept "false" as a keyword
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 1f6c8fb0..e3ce2eb2 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -41,8 +41,8 @@ int expr_t::token_t::parse_reserved_word(std::istream& in)
if (c == 'a' || c == 'd' || c == 'f' || c == 'o' || c == 'n' || c == 't') {
length = 0;
- char buf[5];
- READ_INTO_(in, buf, 4, c, length, std::isalpha(c));
+ char buf[6];
+ READ_INTO_(in, buf, 5, c, length, std::isalpha(c));
switch (buf[0]) {
case 'a':