Mercurial > pidgin.yaz
comparison libpurple/protocols/msnp9/switchboard.c @ 27800:85d5b6c06a6c
propagate from branch 'im.pidgin.pidgin' (head 33bd2430510196431b931ccb1fa0b55777482dd0)
to branch 'im.pidgin.pidgin.yaz' (head 5426ea7b0587a996037bc668698aea554c01356e)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 17 Mar 2008 06:32:52 +0000 |
parents | 3225c99785b8 2cb44870580d |
children | 5f9ca519ea9f |
comparison
equal
deleted
inserted
replaced
22483:14c476bcdaee | 27800:85d5b6c06a6c |
---|---|
832 MsnSwitchBoard *swboard; | 832 MsnSwitchBoard *swboard; |
833 const char *body; | 833 const char *body; |
834 char *body_str; | 834 char *body_str; |
835 char *body_enc; | 835 char *body_enc; |
836 char *body_final; | 836 char *body_final; |
837 size_t body_len; | 837 size_t body_len, new_len; |
838 const char *passport; | 838 const char *passport; |
839 const char *value; | 839 const char *value; |
840 | 840 |
841 gc = cmdproc->session->account->gc; | 841 gc = cmdproc->session->account->gc; |
842 swboard = cmdproc->data; | 842 swboard = cmdproc->data; |
843 | 843 |
844 body = msn_message_get_bin_data(msg, &body_len); | 844 body = msn_message_get_bin_data(msg, &body_len); |
845 body_str = g_strndup(body, body_len); | 845 body_str = sanitize_utf(body, body_len, &new_len); |
846 body_enc = g_markup_escape_text(body_str, -1); | 846 body_enc = g_markup_escape_text(body_str, -1); |
847 g_free(body_str); | 847 g_free(body_str); |
848 | 848 |
849 passport = msg->remote_user; | 849 passport = msg->remote_user; |
850 | 850 |