# HG changeset patch # User Sean Egan # Date 1020626418 0 # Node ID f1ac8b51ec6beb86db09b48108ae494aa40ffc5e # Parent 7ed9fa994055bacc8ebe11062ca4816863409ba2 [gaim-migrate @ 3231] I really should make sure these things compile before committing them committer: Tailor Script diff -r 7ed9fa994055 -r f1ac8b51ec6b src/protocols/oscar/oscar.c --- 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;