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