Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/protocols/msn/servconn.c Sat Nov 22 23:17:31 2003 +0000 +++ b/src/protocols/msn/servconn.c Sun Nov 23 03:23:02 2003 +0000 @@ -146,11 +146,16 @@ if (servconn->multiline_type == MSN_MULTILINE_MSG) { MsnMessage *msg; + size_t header_len; g_snprintf(msg_str, sizeof(msg_str), - "MSG %s %s %d\r\n%s", + "MSG %s %s %d\r\n", servconn->msg_passport, servconn->msg_friendly, - servconn->multiline_len, buffer); + servconn->multiline_len); + + header_len = strlen(msg_str); + + memcpy(msg_str + header_len, buffer, servconn->multiline_len); gaim_debug(GAIM_DEBUG_MISC, "msn", "Message: {%s}\n", buffer);