Compare commits
1 Commits
master
...
xml-parsin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c6279dc12 |
@ -1748,9 +1748,9 @@ int parse_xml_buffer(const char *url, const char *buffer, int size,
|
||||
state.sites = sites;
|
||||
state.devices = devices;
|
||||
state.filter_presets = filter_presets;
|
||||
doc = xmlReadMemory(res, strlen(res), url, NULL, 0);
|
||||
doc = xmlReadMemory(res, strlen(res), url, NULL, XML_PARSE_HUGE);
|
||||
if (!doc)
|
||||
doc = xmlReadMemory(res, strlen(res), url, "latin1", 0);
|
||||
doc = xmlReadMemory(res, strlen(res), url, "latin1", XML_PARSE_HUGE);
|
||||
|
||||
if (res != buffer)
|
||||
free((char *)res);
|
||||
|
||||
@ -871,7 +871,7 @@ static int export_dives_xslt_doit(const char *filename, struct xml_params *param
|
||||
* transform it to selected export format, finally dumping
|
||||
* the XML into a character buffer.
|
||||
*/
|
||||
doc = xmlReadMemory(buf.buffer, buf.len, "divelog", NULL, 0);
|
||||
doc = xmlReadMemory(buf.buffer, buf.len, "divelog", NULL, XML_PARSE_HUGE);
|
||||
free_buffer(&buf);
|
||||
if (!doc)
|
||||
return report_error("Failed to read XML memory");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user