(test), gnucash.cc (test): Check for <?xml only, not the full version

string.
This commit is contained in:
John Wiegley 2005-02-14 07:44:46 +00:00
parent 38b126edbd
commit 22beb86239

View file

@ -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,