s/xmlParseMemory/xmlReadMemory/

...as xmlParseMemory() is deprecated
This commit is contained in:
Johan Malm 2024-12-08 17:21:11 +00:00
parent 5e422a0bc2
commit 36355c0e4e
2 changed files with 4 additions and 2 deletions

View file

@ -755,7 +755,8 @@ xml_tree_walk(xmlNode *node, struct server *server)
static bool
parse_buf(struct server *server, struct buf *buf)
{
xmlDoc *d = xmlParseMemory(buf->data, buf->len);
int options = 0;
xmlDoc *d = xmlReadMemory(buf->data, buf->len, NULL, NULL, options);
if (!d) {
wlr_log(WLR_ERROR, "xmlParseMemory()");
return false;