soc.2010.msn-tlc: e207f388: Fix a warning caused because slpmsg->buf...

masca at cpw.pidgin.im masca at cpw.pidgin.im
Thu Aug 5 22:01:18 EDT 2010


----------------------------------------------------------------------
Revision: e207f388642a31ee0e6f74bfc25fc1c874b6aaf1
Parent:   e1054f08a83cd8d39e5a11fcef26161d8d56cf4d
Author:   masca at cpw.pidgin.im
Date:     08/05/10 18:47:36
Branch:   im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/e207f388642a31ee0e6f74bfc25fc1c874b6aaf1

Changelog: 

Fix a warning caused because slpmsg->buffer is unsigned and the function spect a gchar pointer. I don't think this can harm in any way.

Changes against parent e1054f08a83cd8d39e5a11fcef26161d8d56cf4d

  patched  libpurple/protocols/msn/slpmsg.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg.c	09a484cec83584ac28823ed0f32b6010de5ec1ed
+++ libpurple/protocols/msn/slpmsg.c	a5ee74ea0391f7057264ec23391f149398d44827
@@ -346,7 +346,7 @@ void msn_slpmsg_show_readable(MsnSlpMess
 	g_string_append_printf(str, "ACK Size:   %" G_GUINT64_FORMAT "\r\n", slpmsg->header->ack_size);
 
 	if (purple_debug_is_verbose() && slpmsg->buffer != NULL) {
-		g_string_append_len(str, slpmsg->buffer, slpmsg->size);
+		g_string_append_len(str, (gchar*)slpmsg->buffer, slpmsg->size);
 
 		if (slpmsg->buffer[slpmsg->size - 1] == '\0') {
 			str->len--;


More information about the Commits mailing list