pidgin: 4ab44f6d: Fix the warnings.

qulogic at pidgin.im qulogic at pidgin.im
Fri Jul 31 00:15:40 EDT 2009


-----------------------------------------------------------------
Revision: 4ab44f6d2d3f9667a26d8150bb6db0c7f9babf6a
Ancestor: 93e391d8405307e56bf2d3abdc6f300531a8b7d4
Author: qulogic at pidgin.im
Date: 2009-07-31T04:05:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4ab44f6d2d3f9667a26d8150bb6db0c7f9babf6a

Modified files:
        libpurple/protocols/msn/slpcall.c

ChangeLog: 

Fix the warnings.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpcall.c	842011034157f07b297f7c51cddaac3b01561c09
+++ libpurple/protocols/msn/slpcall.c	d99dc9d24dc7db3c928f73280aba7047f0e5bded
@@ -208,7 +208,8 @@ msn_slp_process_msg(MsnSlpLink *slplink,
 			GError *error;
 			gsize bytes_read, bytes_written;
 
-			body_str = g_convert(body, body_len / 2, "UTF16-LE", "UTF-8",
+			body_str = g_convert((const gchar *)body, body_len / 2,
+			                     "UTF16-LE", "UTF-8",
 			                     &bytes_read, &bytes_written, &error);
 			body_len -= bytes_read + 2;
 			body += bytes_read + 2;
@@ -228,7 +229,8 @@ msn_slp_process_msg(MsnSlpLink *slplink,
 			}
 			g_free(body_str);
 
-			body_str = g_convert(body, body_len / 2, "UTF16-LE", "UTF-8",
+			body_str = g_convert((const gchar *)body, body_len / 2,
+			                     "UTF16-LE", "UTF-8",
 			                     &bytes_read, &bytes_written, &error);
 			if (!body_str)
 			{


More information about the Commits mailing list