Mercurial > pidgin
comparison src/protocols/oscar/ssi.c @ 3332:f56d084d4046
[gaim-migrate @ 3350]
Fix bug where buddies sometimes wouldn't show up. (Thanks, Mark Doliner)
committer: Tailor Script <tailor@pidgin.im>
author | Jim Seymour <jseymour> |
---|---|
date | Sat, 22 Jun 2002 11:57:57 +0000 |
parents | 373346660788 |
children | dd34e0b40fed |
comparison
equal
deleted
inserted
replaced
3331:8f69ff64f0bf | 3332:f56d084d4046 |
---|---|
123 return -ENOMEM; | 123 return -ENOMEM; |
124 newlen = 0; | 124 newlen = 0; |
125 if (parentgroup->gid == 0x0000) { | 125 if (parentgroup->gid == 0x0000) { |
126 for (cur=*list; cur; cur=cur->next) | 126 for (cur=*list; cur; cur=cur->next) |
127 if ((cur->gid != 0x0000) && (cur->type == AIM_SSI_TYPE_GROUP)) | 127 if ((cur->gid != 0x0000) && (cur->type == AIM_SSI_TYPE_GROUP)) |
128 aimutil_put16(newdata+newlen*2, cur->gid); | 128 newlen += aimutil_put16(newdata+newlen, cur->gid); |
129 } else { | 129 } else { |
130 for (cur=*list; cur; cur=cur->next) | 130 for (cur=*list; cur; cur=cur->next) |
131 if ((cur->gid == parentgroup->gid) && (cur->type == AIM_SSI_TYPE_BUDDY)) | 131 if ((cur->gid == parentgroup->gid) && (cur->type == AIM_SSI_TYPE_BUDDY)) |
132 aimutil_put16(newdata+newlen*2, cur->bid); | 132 newlen += aimutil_put16(newdata+newlen, cur->bid); |
133 } | 133 } |
134 aim_addtlvtochain_raw((aim_tlvlist_t **)&(parentgroup->data), 0x00c8, newlen, newdata); | 134 aim_addtlvtochain_raw((aim_tlvlist_t **)&(parentgroup->data), 0x00c8, newlen, newdata); |
135 | 135 |
136 free(newdata); | 136 free(newdata); |
137 } | 137 } |