comparison src/protocols/oscar/oscar.c @ 7328:3bcd867c22f3

[gaim-migrate @ 7914] This fixes the ICQ login crash. It was crashing because some group names or screen names (basically the "name" part of some ssi items) has a trailing non-utf8 character. I have absolutely no idea why. Any insight is welcome... committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 25 Oct 2003 06:56:46 +0000
parents be7c1468c6a7
children 83e8faa7f6d5
comparison
equal deleted inserted replaced
7327:258c19be6d84 7328:3bcd867c22f3
4799 /* Clean the buddy list */ 4799 /* Clean the buddy list */
4800 aim_ssi_cleanlist(sess); 4800 aim_ssi_cleanlist(sess);
4801 4801
4802 /* Add from server list to local list */ 4802 /* Add from server list to local list */
4803 for (curitem=sess->ssi.local; curitem; curitem=curitem->next) { 4803 for (curitem=sess->ssi.local; curitem; curitem=curitem->next) {
4804 if ((curitem->name == NULL) || (g_utf8_validate(curitem->name, -1, NULL)))
4804 switch (curitem->type) { 4805 switch (curitem->type) {
4805 case 0x0000: { /* Buddy */ 4806 case 0x0000: { /* Buddy */
4806 if (curitem->name) { 4807 if (curitem->name) {
4807 char *gname = aim_ssi_itemlist_findparentname(sess->ssi.local, curitem->name); 4808 char *gname = aim_ssi_itemlist_findparentname(sess->ssi.local, curitem->name);
4808 char *gname_utf8 = gname ? gaim_utf8_try_convert(gname) : NULL; 4809 char *gname_utf8 = gname ? gaim_utf8_try_convert(gname) : NULL;