libpurple/protocols/oscar/family_auth.c

changeset 25086
fb94ee60a4f2
parent 24670
84014b07aa10
child 25152
128b99dfb286
--- a/libpurple/protocols/oscar/family_auth.c	Sun Dec 07 02:36:57 2008 +0000
+++ b/libpurple/protocols/oscar/family_auth.c	Sun Dec 07 23:34:12 2008 +0000
@@ -295,10 +295,9 @@
 	/*
 	 * No matter what, we should have a screen name.
 	 */
-	memset(od->sn, 0, sizeof(od->sn));
 	if (aim_tlv_gettlv(tlvlist, 0x0001, 1)) {
 		info->sn = aim_tlv_getstr(tlvlist, 0x0001, 1);
-		strncpy(od->sn, info->sn, sizeof(od->sn));
+		purple_connection_set_display_name(od->gc, info->sn);
 	}
 
 	/*

mercurial