[gaim-migrate @ 1553]

Wed, 07 Mar 2001 21:54:31 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Wed, 07 Mar 2001 21:54:31 +0000
changeset 1543
cc0fa2572dd1
parent 1542
3e9133220e6d
child 1544
2016a632b44f

[gaim-migrate @ 1553]
icq passwords are only 8 chars.

plugins/icq/gaim_icq.c file | annotate | diff | comparison | revisions
--- a/plugins/icq/gaim_icq.c	Wed Mar 07 21:48:25 2001 +0000
+++ b/plugins/icq/gaim_icq.c	Wed Mar 07 21:54:31 2001 +0000
@@ -240,10 +240,12 @@
 	struct gaim_connection *gc = new_gaim_conn(user);
 	struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1);
 	ICQLINK *link;
+	char ps[9];
 
 	icq_LogLevel = ICQ_LOG_MESSAGE;
 
-	link = id->link = icq_ICQLINKNew(atol(user->username), user->password,
+	g_snprintf(ps, sizeof(ps), "%s", user->password);
+	link = id->link = icq_ICQLINKNew(atol(user->username), ps,
 			  user->proto_opt[USEROPT_NICK][0] ? user->proto_opt[USEROPT_NICK] : "gaim user",
 			  TRUE);
 

mercurial