diff src/protocols/oscar/ssi.c @ 4308:b3a14484fc2f

[gaim-migrate @ 4562] Fix the "Remove" permit buddy button in le privacy dialogueueue. I also screwed around with a bit 'o syntax in ssi.c, and hopefully make the uin@pager.icq.com receiving thing nice. I _still_ don't know why I can't send an email through that reliably. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Jan 2003 23:13:51 +0000
parents 22ebfa41525a
children 7c9f3d0fe8b2
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c	Sun Jan 12 19:23:44 2003 +0000
+++ b/src/protocols/oscar/ssi.c	Sun Jan 12 23:13:51 2003 +0000
@@ -154,7 +154,7 @@
 			*list = new;
 		} else {
 			struct aim_ssi_item *prev;
-			for ((prev=*list, cur=(*list)->next); (cur && (new->gid > cur->gid || ((new->gid == cur->gid) && (new->bid > cur->bid)))); prev=cur, cur=cur->next);
+			for ((prev=*list, cur=(*list)->next); (cur && ((new->gid > cur->gid) || ((new->gid == cur->gid) && (new->bid > cur->bid)))); prev=cur, cur=cur->next);
 			new->next = prev->next;
 			prev->next = new;
 		}
@@ -180,7 +180,7 @@
 
 	/* Remove the item from the list */
 	if (*list == del) {
-		*list = del->next;
+		*list = (*list)->next;
 	} else {
 		struct aim_ssi_item *cur;
 		for (cur=*list; (cur->next && (cur->next!=del)); cur=cur->next);