Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 25521:636679fb98ad
propagate from branch 'im.pidgin.pidgin' (head 7bf90628ea82588a24a5c2e11b62e1128d8c90f0)
to branch 'im.pidgin.pidgin.yaz' (head f554d827ac55b0841c6212d0537840c743a62b07)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 28 Jun 2007 08:37:46 +0000 |
parents | e3df2f61d03d db41905e7cc4 |
children | 536ee8e459ef |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Thu Jun 28 06:13:28 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Jun 28 08:37:46 2007 +0000 @@ -348,8 +348,8 @@ void jabber_send(JabberStream *js, xmlnode *packet) { - char *txt; - int len; + char *txt, *utf; + int len, utflen; purple_signal_emit(my_protocol, "jabber-sending-xmlnode", js->gc, &packet); @@ -358,8 +358,9 @@ return; txt = xmlnode_to_str(packet, &len); - jabber_send_raw(js, txt, len); - g_free(txt); + utf = botch_utf(txt, len, &utflen); //yaz + jabber_send_raw(js, utf, utflen); + g_free(txt); g_free(utf); } void jabber_keepalive(PurpleConnection *gc)