Mercurial > pidgin.yaz
comparison src/protocols/msn/servconn.c @ 7604:43803965ef45
[gaim-migrate @ 8227]
Committing what I have of MSN. It's disabled.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 23 Nov 2003 03:23:02 +0000 |
parents | ff9127038a5a |
children | 160547821ea2 |
comparison
equal
deleted
inserted
replaced
7603:dfebaa14bf67 | 7604:43803965ef45 |
---|---|
144 char msg_str[MSN_BUF_LEN]; | 144 char msg_str[MSN_BUF_LEN]; |
145 gboolean result = TRUE; | 145 gboolean result = TRUE; |
146 | 146 |
147 if (servconn->multiline_type == MSN_MULTILINE_MSG) { | 147 if (servconn->multiline_type == MSN_MULTILINE_MSG) { |
148 MsnMessage *msg; | 148 MsnMessage *msg; |
149 size_t header_len; | |
149 | 150 |
150 g_snprintf(msg_str, sizeof(msg_str), | 151 g_snprintf(msg_str, sizeof(msg_str), |
151 "MSG %s %s %d\r\n%s", | 152 "MSG %s %s %d\r\n", |
152 servconn->msg_passport, servconn->msg_friendly, | 153 servconn->msg_passport, servconn->msg_friendly, |
153 servconn->multiline_len, buffer); | 154 servconn->multiline_len); |
155 | |
156 header_len = strlen(msg_str); | |
157 | |
158 memcpy(msg_str + header_len, buffer, servconn->multiline_len); | |
154 | 159 |
155 gaim_debug(GAIM_DEBUG_MISC, "msn", | 160 gaim_debug(GAIM_DEBUG_MISC, "msn", |
156 "Message: {%s}\n", buffer); | 161 "Message: {%s}\n", buffer); |
157 | 162 |
158 msg = msn_message_new_from_str(servconn->session, msg_str); | 163 msg = msn_message_new_from_str(servconn->session, msg_str); |