Mercurial > pidgin.yaz
changeset 5591:74a0e79ad627
[gaim-migrate @ 5995]
Not sure why we had the password truncated... I can connect now though.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 31 May 2003 07:52:04 +0000 |
parents | 011a0a975060 |
children | 57165429ed73 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sat May 31 07:22:47 2003 +0000 +++ b/src/protocols/oscar/oscar.c Sat May 31 07:52:04 2003 +0000 @@ -1347,26 +1347,25 @@ char *key; va_list ap; GaimConnection *gc = sess->aux_data; + GaimAccount *account = gaim_connection_get_account(gc); GaimAccount *ac = gaim_connection_get_account(gc); - char pass[9]; struct oscar_data *od = gc->proto_data; va_start(ap, fr); key = va_arg(ap, char *); va_end(ap); - /* Truncate the password at 8 characters */ - g_snprintf(pass, sizeof(pass), gaim_account_get_password(ac)); - if (od->icq) { struct client_info_s info = CLIENTINFO_ICQ_KNOWNGOOD; - aim_send_login(sess, fr->conn, gaim_account_get_username(ac), pass, &info, key); + aim_send_login(sess, fr->conn, gaim_account_get_username(ac), + gaim_account_get_password(account), &info, key); } else { #if 0 struct client_info_s info = {"gaim", 4, 1, 2010, "us", "en", 0x0004, 0x0000, 0x04b}; #endif struct client_info_s info = CLIENTINFO_AIM_KNOWNGOOD; - aim_send_login(sess, fr->conn, gaim_account_get_username(ac), pass, &info, key); + aim_send_login(sess, fr->conn, gaim_account_get_username(ac), + gaim_account_get_password(account), &info, key); } return 1;