depot/third_party/nixpkgs/pkgs/development/libraries/gdome2/xml-document.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

11 lines
506 B
Diff

--- a/libgdome/gdomecore/gdome-xml-documentt.c 2003-07-13 14:47:54.000000000 +0400
+++ b/libgdome/gdomecore/gdome-xml-documentt.c 2013-07-02 14:09:18.304613703 +0400
@@ -342,7 +342,7 @@
}
xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL);
xmlOutputBufferFlush(out_buff);
- ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use);
+ ret = g_strndup (xmlBufContent(out_buff), xmlBufUse(out_buff));
(void)xmlOutputBufferClose(out_buff);
return gdome_xml_str_mkref_own (ret);