From 81f57ecc41c68bde967f8cc2312355c4626afcab Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 22 Feb 2009 04:50:45 -0400 Subject: Correctly accept "false" as a keyword --- 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 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': -- cgit v1.2.3