diff options
author | John Wiegley <johnw@newartisans.com> | 2005-03-08 16:08:59 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:07 -0400 |
commit | b671d2934b64c7b693cacfd06ca0a5c08e4b24c5 (patch) | |
tree | e8e591f22918196c49d31e0f35bd1fa2b05cfb99 /xml.cc | |
parent | d790a3ad609feff06d36b77eac58bd1c0ab9eae8 (diff) | |
download | fork-ledger-b671d2934b64c7b693cacfd06ca0a5c08e4b24c5.tar.gz fork-ledger-b671d2934b64c7b693cacfd06ca0a5c08e4b24c5.tar.bz2 fork-ledger-b671d2934b64c7b693cacfd06ca0a5c08e4b24c5.zip |
minor bit twiddling
Diffstat (limited to 'xml.cc')
-rw-r--r-- | xml.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -134,15 +134,15 @@ static void dataHandler(void *userData, const char *s, int len) bool xml_parser_t::test(std::istream& in) const { - char buf[256]; + char buf[80]; - in.getline(buf, 255); + in.getline(buf, 79); if (std::strncmp(buf, "<?xml", 5) != 0) { in.seekg(0, std::ios::beg); return false; } - in.getline(buf, 255); + in.getline(buf, 79); if (! std::strstr(buf, "<ledger")) { in.seekg(0, std::ios::beg); return false; |