summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,