mirror of https://github.com/kiwix/libkiwix.git
Manager::readXml() doesn't modify its input
This commit is contained in:
parent
5c289abd0e
commit
9033f2f28e
|
@ -80,7 +80,7 @@ bool Manager::readXml(const std::string& xml,
|
|||
{
|
||||
pugi::xml_document doc;
|
||||
pugi::xml_parse_result result
|
||||
= doc.load_buffer_inplace((void*)xml.data(), xml.size());
|
||||
= doc.load_buffer((void*)xml.data(), xml.size());
|
||||
|
||||
if (result) {
|
||||
this->parseXmlDom(doc, readOnly, libraryPath, trustLibrary);
|
||||
|
|
Loading…
Reference in New Issue