(test), gnucash.cc (test): Check for <?xml only, not the full version
string.
This commit is contained in:
parent
38b126edbd
commit
22beb86239
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue