Mercurial > pidgin.yaz
comparison libpurple/protocols/msnp9/switchboard.c @ 27826:5f9ca519ea9f
propagate from branch 'im.pidgin.pidgin' (head 90011f8844f95be26206d5698b603f1692f319a0)
to branch 'im.pidgin.pidgin.yaz' (head e4862d866bc0b147e783d27c1faa51f1d3e0b58a)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 24 Apr 2008 02:28:24 +0000 |
parents | 48abe30dc90a 85d5b6c06a6c |
children |
comparison
equal
deleted
inserted
replaced
22698:80c87908ff1d | 27826:5f9ca519ea9f |
---|---|
835 MsnSwitchBoard *swboard; | 835 MsnSwitchBoard *swboard; |
836 const char *body; | 836 const char *body; |
837 char *body_str; | 837 char *body_str; |
838 char *body_enc; | 838 char *body_enc; |
839 char *body_final; | 839 char *body_final; |
840 size_t body_len; | 840 size_t body_len, new_len; |
841 const char *passport; | 841 const char *passport; |
842 const char *value; | 842 const char *value; |
843 | 843 |
844 gc = cmdproc->session->account->gc; | 844 gc = cmdproc->session->account->gc; |
845 swboard = cmdproc->data; | 845 swboard = cmdproc->data; |
846 | 846 |
847 body = msn_message_get_bin_data(msg, &body_len); | 847 body = msn_message_get_bin_data(msg, &body_len); |
848 body_str = g_strndup(body, body_len); | 848 body_str = sanitize_utf(body, body_len, &new_len); |
849 body_enc = g_markup_escape_text(body_str, -1); | 849 body_enc = g_markup_escape_text(body_str, -1); |
850 g_free(body_str); | 850 g_free(body_str); |
851 | 851 |
852 passport = msg->remote_user; | 852 passport = msg->remote_user; |
853 | 853 |