summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-14 07:44:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:00 -0400
commit22beb8623900130f3175a74e51c242f6ad416caa (patch)
treeb4029b81a8a1627b00d326e67a3e3c48ce03d8c7
parent38b126edbda5d0797be09fc53e275c8156389725 (diff)
downloadfork-ledger-22beb8623900130f3175a74e51c242f6ad416caa.tar.gz
fork-ledger-22beb8623900130f3175a74e51c242f6ad416caa.tar.bz2
fork-ledger-22beb8623900130f3175a74e51c242f6ad416caa.zip
(test), gnucash.cc (test): Check for <?xml only, not the full version
string.
-rw-r--r--gnucash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnucash.cc b/gnucash.cc
index 0b62faea..02604c55 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -290,7 +290,7 @@ bool gnucash_parser_t::test(std::istream& in) const
in.getline(buf, 127);
in.seekg(0, std::ios::beg);
- return std::strncmp(buf, "<?xml version=\"1.0\"?>", 21) == 0;
+ return std::strncmp(buf, "<?xml", 5) == 0;
}
unsigned int gnucash_parser_t::parse(std::istream& in,