...as xmlParseMemory() is deprecated
void
rcxml_parse_xml(struct buf *b)
{
- xmlDoc *d = xmlParseMemory(b->data, b->len);
+ int options = 0;
+ xmlDoc *d = xmlReadMemory(b->data, b->len, NULL, NULL, options);
if (!d) {
wlr_log(WLR_ERROR, "error parsing config file");
return;
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;