pidgin: 97b62d04: Fix this warning:

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Dec 2 17:20:24 EST 2009


-----------------------------------------------------------------
Revision: 97b62d04b5e9e87ad7c2d6e90daf8542d6106fed
Ancestor: 04b807937c8e058bcddca1fe81be8cf681345ae8
Author: markdoliner at pidgin.im
Date: 2009-12-02T22:17:36
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/97b62d04b5e9e87ad7c2d6e90daf8542d6106fed

Modified files:
        libpurple/xmlnode.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/xmlnode.c	48c909f1ec8254acd3e2f81b93e0d71021113784
+++ libpurple/xmlnode.c	25e8ee46f17d5eb9e8dc16f2d9413507f0dc0e14
@@ -588,7 +588,7 @@ xmlnode_parser_element_start_libxml(void
 			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);


More information about the Commits mailing list