summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-14 07:45:18 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:00 -0400
commit1895ae6653c6d9b77744f7b50d4dc7082d844da2 (patch)
tree1d86b16e0cf9e30dd8a0aaf249b7ae1c44a3f0b7
parentdc4c2b8d50fa7014bccfc5251c7a90d62926ddb6 (diff)
downloadfork-ledger-1895ae6653c6d9b77744f7b50d4dc7082d844da2.tar.gz
fork-ledger-1895ae6653c6d9b77744f7b50d4dc7082d844da2.tar.bz2
fork-ledger-1895ae6653c6d9b77744f7b50d4dc7082d844da2.zip
(test): Check for <?xml only, not the full version string.
-rw-r--r--xml.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml.cc b/xml.cc
index 834089fc..c5cf9f31 100644
--- a/xml.cc
+++ b/xml.cc
@@ -137,7 +137,7 @@ bool xml_parser_t::test(std::istream& in) const
char buf[256];
in.getline(buf, 255);
- if (std::strncmp(buf, "<?xml version=\"1.0\"?>", 21) != 0) {
+ if (std::strncmp(buf, "<?xml", 5) != 0) {
in.seekg(0, std::ios::beg);
return false;
}