Mercurial > pidgin.yaz
changeset 3328:d183c2703508
[gaim-migrate @ 3346]
Remainder of fix for Gaim crashing on non-ASCII buddy alias (Jabber "name"
attribute) chars. (Thanks, A Ho-seok Lee)
committer: Tailor Script <tailor@pidgin.im>
author | Jim Seymour <jseymour> |
---|---|
date | Wed, 19 Jun 2002 21:20:08 +0000 |
parents | 220c9f1fc75e |
children | e099cf9a9586 |
files | src/protocols/jabber/jabber.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Tue Jun 18 22:59:22 2002 +0000 +++ b/src/protocols/jabber/jabber.c Wed Jun 19 21:20:08 2002 +0000 @@ -1710,6 +1710,9 @@ /* * Add or remove a buddy? Change buddy's alias or group? */ + if(name) + name = utf8_to_str(name); + if (BUD_SUB_TO_PEND(sub, ask) || BUD_SUBD_TO(sub, ask)) { if ((b = find_buddy(GJ_GC(gjc), buddyname)) == NULL) { debug_printf("adding buddy [4]: %s\n", buddyname); @@ -1748,6 +1751,10 @@ } else if (BUD_USUB_TO_PEND(sub, ask) || BUD_USUBD_TO(sub, ask) || !strcasecmp(sub, "remove")) { jabber_remove_gaim_buddy(GJ_GC(gjc), buddyname); } + + if(name) + g_free(name); + g_free(buddyname); }