From: Guillaume Poirier-Morency Date: Tue, 28 Jun 2016 14:58:14 +0000 (-0400) Subject: libxml-2.0: Fix 'htmlEncodeEntities' and 'UTF8ToHtml' using 'ref' instead of 'out' X-Git-Tag: 0.33.1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e017c96adc0eeed8914736db01d27704b7130abe;p=thirdparty%2Fvala.git libxml-2.0: Fix 'htmlEncodeEntities' and 'UTF8ToHtml' using 'ref' instead of 'out' The passed buffer lengths are updated by these calls to indicate how much has been read and written. Using a 'out' parameter does not let one initialize them with the buffer lenghts. https://bugzilla.gnome.org/show_bug.cgi?id=768143 --- diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi index 749762e2a..a4e62c87d 100644 --- a/vapi/libxml-2.0.vapi +++ b/vapi/libxml-2.0.vapi @@ -1742,10 +1742,10 @@ namespace Html { public static int is_boolean_attr ([CCode (type = "xmlChar*")] string name); [CCode (cname = "UTF8ToHtml", cheader_filename = "libxml/HTMLparser.h")] - public static int utf8_to_html ([CCode (array_length = false)] char[] outdata, out int outlen, [CCode (array_length = false)] char[] indata, out int inlen); + public static int utf8_to_html ([CCode (array_length = false)] char[] outdata, ref int outlen, [CCode (array_length = false)] char[] indata, ref int inlen); [CCode (cname = "htmlEncodeEntities", cheader_filename = "libxml/HTMLparser.h")] - public static int encode_entities ([CCode (array_length = false)] char[] outdata, out int outlen, [CCode (array_length = false)] char[] indata, out int inlen, char quote_char = '\0'); + public static int encode_entities ([CCode (array_length = false)] char[] outdata, ref int outlen, [CCode (array_length = false)] char[] indata, ref int inlen, char quote_char = '\0'); [CCode (cname = "htmlIsScriptAttribute", cheader_filename = "libxml/HTMLparser.h")] public static bool is_script_attribute ([CCode (type = "xmlChar*")] string name);