comparison plugins/icq/gaim_icq.c @ 1543:352f05feb0d1

[gaim-migrate @ 1553] icq passwords are only 8 chars. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 07 Mar 2001 21:54:31 +0000
parents e06dcc3025a9
children 4c3bcc579e71
comparison
equal deleted inserted replaced
1542:558b3f0fb227 1543:352f05feb0d1
238 238
239 static void icq_login(struct aim_user *user) { 239 static void icq_login(struct aim_user *user) {
240 struct gaim_connection *gc = new_gaim_conn(user); 240 struct gaim_connection *gc = new_gaim_conn(user);
241 struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1); 241 struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1);
242 ICQLINK *link; 242 ICQLINK *link;
243 char ps[9];
243 244
244 icq_LogLevel = ICQ_LOG_MESSAGE; 245 icq_LogLevel = ICQ_LOG_MESSAGE;
245 246
246 link = id->link = icq_ICQLINKNew(atol(user->username), user->password, 247 g_snprintf(ps, sizeof(ps), "%s", user->password);
248 link = id->link = icq_ICQLINKNew(atol(user->username), ps,
247 user->proto_opt[USEROPT_NICK][0] ? user->proto_opt[USEROPT_NICK] : "gaim user", 249 user->proto_opt[USEROPT_NICK][0] ? user->proto_opt[USEROPT_NICK] : "gaim user",
248 TRUE); 250 TRUE);
249 251
250 link->icq_Logged = icq_online; 252 link->icq_Logged = icq_online;
251 link->icq_Disconnected = icq_logged_off; 253 link->icq_Disconnected = icq_logged_off;