Mercurial > pidgin
comparison libpurple/protocols/msn/msg.c @ 30699:a786d893df2b
I don't believe there's any reason to duplicate this string.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 09 Feb 2010 01:55:36 +0000 |
parents | 33b4ae796648 |
children | c5a7516418c7 |
comparison
equal
deleted
inserted
replaced
30698:24f371e16a51 | 30699:a786d893df2b |
---|---|
814 void | 814 void |
815 msn_plain_msg(MsnCmdProc *cmdproc, MsnMessage *msg) | 815 msn_plain_msg(MsnCmdProc *cmdproc, MsnMessage *msg) |
816 { | 816 { |
817 PurpleConnection *gc; | 817 PurpleConnection *gc; |
818 const char *body; | 818 const char *body; |
819 char *body_str; | |
820 char *body_enc; | 819 char *body_enc; |
821 char *body_final; | 820 char *body_final; |
822 size_t body_len; | 821 size_t body_len; |
823 const char *passport; | 822 const char *passport; |
824 const char *value; | 823 const char *value; |
825 | 824 |
826 gc = cmdproc->session->account->gc; | 825 gc = cmdproc->session->account->gc; |
827 | 826 |
828 body = msn_message_get_bin_data(msg, &body_len); | 827 body = msn_message_get_bin_data(msg, &body_len); |
829 body_str = g_strndup(body, body_len); | 828 body_enc = g_markup_escape_text(body, body_len); |
830 body_enc = g_markup_escape_text(body_str, -1); | |
831 g_free(body_str); | |
832 | 829 |
833 passport = msg->remote_user; | 830 passport = msg->remote_user; |
834 | 831 |
835 if (!strcmp(passport, "messenger@microsoft.com") && | 832 if (!strcmp(passport, "messenger@microsoft.com") && |
836 strstr(body, "immediate security update")) | 833 strstr(body, "immediate security update")) |