Mercurial > pidgin.yaz
changeset 12307:cfffd6fdb073
[gaim-migrate @ 14611]
fix sf bug #1371184, AIM Triton and Away/Available Messages
"When a AIM Triton buddy returns from away, Gaim takes
that away message and calls it a Available message."
Ah, the joys of a closed protocol.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 03 Dec 2005 19:59:26 +0000 |
parents | 5907fb1e58a0 |
children | 1d4a05772625 |
files | src/protocols/oscar/locate.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c Sat Dec 03 19:39:40 2005 +0000 +++ b/src/protocols/oscar/locate.c Sat Dec 03 19:59:26 2005 +0000 @@ -756,8 +756,9 @@ } break; case 0x0002: { /* An available message */ + free(outinfo->avail); + free(outinfo->avail_encoding); if (length2 >= 4) { - free(outinfo->avail); outinfo->avail_len = aimbs_get16(bs); outinfo->avail = aimbs_getstr(bs, outinfo->avail_len); if (aimbs_get16(bs) == 0x0001) { /* We have an encoding */ @@ -767,8 +768,12 @@ /* No explicit encoding, client should use UTF-8 */ outinfo->avail_encoding = NULL; } - } else + } else { aim_bstream_advance(bs, length2); + outinfo->avail_len = 0; + outinfo->avail = g_strdup(""); + outinfo->avail_encoding = NULL; + } } break; default: {