summaryrefslogtreecommitdiff
path: root/xml.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-03-08 16:08:59 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:07 -0400
commitb671d2934b64c7b693cacfd06ca0a5c08e4b24c5 (patch)
treee8e591f22918196c49d31e0f35bd1fa2b05cfb99 /xml.cc
parentd790a3ad609feff06d36b77eac58bd1c0ab9eae8 (diff)
downloadfork-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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/xml.cc b/xml.cc
index 00280c38..0b51469a 100644
--- a/xml.cc
+++ b/xml.cc
@@ -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;