# HG changeset patch # User Luke Schierer # Date 1130514195 0 # Node ID 346bd669c8f298d4f69766a854f872e9cf1557e1 # Parent ea0f39933003f1d330dbc765315defdc68ea0572 [gaim-migrate @ 14164] some error prevention from Casey Harkins. see patch 1340762 committer: Tailor Script diff -r ea0f39933003 -r 346bd669c8f2 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Fri Oct 28 14:12:07 2005 +0000 +++ b/src/protocols/oscar/oscar.c Fri Oct 28 15:43:15 2005 +0000 @@ -7519,13 +7519,13 @@ if (userinfo != NULL ) { /* if (userinfo->flags & AIM_FLAG_UNCONFIRMED) emblems[i++] = "unconfirmed"; */ - if (userinfo->flags & AIM_FLAG_ADMINISTRATOR) + if ((i < 4) && userinfo->flags & AIM_FLAG_ADMINISTRATOR) emblems[i++] = "admin"; - if (userinfo->flags & AIM_FLAG_AOL) + if ((i < 4) && userinfo->flags & AIM_FLAG_AOL) emblems[i++] = "aol"; - if (userinfo->flags & AIM_FLAG_WIRELESS) + if ((i < 4) && userinfo->flags & AIM_FLAG_WIRELESS) emblems[i++] = "wireless"; - if (userinfo->flags & AIM_FLAG_ACTIVEBUDDY) + if ((i < 4) && userinfo->flags & AIM_FLAG_ACTIVEBUDDY) emblems[i++] = "activebuddy"; if ((i < 4) && (userinfo->capabilities & AIM_CAPS_HIPTOP))