diff libpurple/xmlnode.c @ 29121:981374c7308b

Fix this warning: xmlnode.c: In function ?xmlnode_parser_element_start_libxml?: xmlnode.c:591: warning: pointer targets in passing argument 1 of ?g_strndup? differ in signedness
author Mark Doliner <mark@kingant.net>
date Wed, 02 Dec 2009 22:17:36 +0000
parents f6f35d5960e9
children e1c01f236674
line wrap: on
line diff
--- a/libpurple/xmlnode.c	Wed Dec 02 22:14:13 2009 +0000
+++ b/libpurple/xmlnode.c	Wed Dec 02 22:17:36 2009 +0000
@@ -588,7 +588,7 @@
 			const char *prefix = (const char *)attributes[i+1];
 			char *txt;
 			int attrib_len = attributes[i+4] - attributes[i+3];
-			char *attrib = g_strndup(attributes[i+3], attrib_len);
+			char *attrib = g_strndup((const char *)attributes[i+3], attrib_len);
 			txt = attrib;
 			attrib = purple_unescape_html(txt);
 			g_free(txt);