[gaim-migrate @ 2287]

Thu, 13 Sep 2001 21:26:17 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Thu, 13 Sep 2001 21:26:17 +0000
changeset 2277
6655918a98af
parent 2276
16753d87b819
child 2278
79ae3adc97bf

[gaim-migrate @ 2287]
hi

src/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- a/src/protocols/oscar/oscar.c	Thu Sep 13 05:52:07 2001 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Sep 13 21:26:17 2001 +0000
@@ -1262,15 +1262,8 @@
 	struct gaim_connection *gc = sess->aux_data;
 	int flags = 0;
 
-	if (sizeof(gaim_features) == args->featureslen) {
-		int i;
-		for (i = 0; i < args->featureslen; i++) {
-			if (gaim_features[i] != args->features[i])
-				break;
-		}
-		if (i == args->featureslen)
-			flags |= IM_FLAG_GAIMUSER;
-	}
+	if ((sizeof(gaim_features) == args->featureslen) && !memcmp(gaim_features, args->features, args->featureslen))
+		flags |= IM_FLAG_GAIMUSER;
 
 	if (args->icbmflags & AIM_IMFLAGS_AWAY)
 		flags |= IM_FLAG_AWAY;

mercurial