changeset 3214:f1ac8b51ec6b

[gaim-migrate @ 3231] I really should make sure these things compile before committing them committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 05 May 2002 19:20:18 +0000
parents 7ed9fa994055
children 5456065a16a8
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun May 05 19:07:05 2002 +0000
+++ b/src/protocols/oscar/oscar.c	Sun May 05 19:20:18 2002 +0000
@@ -3172,8 +3172,9 @@
 
 		/* Check for maximum number of buddies */
 		for (cur=gc->groups, tmp=0; cur; cur=g_slist_next(cur)) {
-			tmp = tmp + g_slist_length(cur->data->members);
-			
+			struct group* gr = (struct group*)cur->data;
+			tmp = tmp + g_slist_length(gr->members);
+		}
 		if (tmp > odata->rights.maxbuddies) {
 			char *dialog_msg = g_strdup_printf(_("The maximum number of buddies allowed in your buddy list is %d, and you have %d."
 							     "  Until you are below the limit, some buddies will not show up as online."), 
@@ -3181,7 +3182,7 @@
 			do_error_dialog(dialog_msg, _("Gaim - Warning"));
 			g_free(dialog_msg);
 		}
-
+		
 	} /* end if (gc) */
 
 	return 1;