changeset 28739: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 0aa6080a6379
children 41656cf6af7a
files libpurple/xmlnode.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);