soc.2008.masterpassword: cc391684: Fix myspace plugin compile.

qulogic at pidgin.im qulogic at pidgin.im
Mon Oct 31 04:10:40 EDT 2011


----------------------------------------------------------------------
Revision: cc3916848dfcfa594d1d1c865495aad69237022c
Parent:   c03100cc2b1608e980accd7e725b46b6108aee6f
Author:   qulogic at pidgin.im
Date:     10/30/11 18:53:10
Branch:   im.pidgin.soc.2008.masterpassword
URL: http://d.pidgin.im/viewmtn/revision/info/cc3916848dfcfa594d1d1c865495aad69237022c

Changelog: 

Fix myspace plugin compile.

Changes against parent c03100cc2b1608e980accd7e725b46b6108aee6f

  patched  libpurple/protocols/myspace/myspace.c

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	77afca8df0fb8dc53ecc9dac0e6baaab870afa0d
+++ libpurple/protocols/myspace/myspace.c	bb3d837c5d5383827e4435d283a8b24f260b6c13
@@ -705,7 +705,7 @@ msim_login_challenge(MsimSession *sessio
 	purple_connection_update_progress(session->gc, _("Logging in"), 2, 4);
 
 	response_len = 0;
-	response = msim_compute_login_response(nc, purple_account_get_username(account), purple_account_get_password(account), &response_len);
+	response = msim_compute_login_response(nc, purple_account_get_username(account), purple_connection_get_password(session->gc), &response_len);
 
 	g_free(nc);
 
@@ -1838,7 +1838,7 @@ msim_error(MsimSession *session, MsimMes
 				if (!purple_account_get_remember_password(session->account))
 					purple_account_set_password(session->account, NULL);
 #ifdef MSIM_MAX_PASSWORD_LENGTH
-				if (purple_account_get_password(session->account) && (strlen(purple_account_get_password(session->account)) > MSIM_MAX_PASSWORD_LENGTH)) {
+				if (purple_connection_get_password(session->gc) && (strlen(purple_connection_get_password(session->gc)) > MSIM_MAX_PASSWORD_LENGTH)) {
 					gchar *suggestion;
 
 					suggestion = g_strdup_printf(_("%s Your password is "
@@ -1846,7 +1846,7 @@ msim_error(MsimSession *session, MsimMes
 							"maximum length of %d.  Please shorten your "
 							"password at http://profileedit.myspace.com/index.cfm?fuseaction=accountSettings.changePassword and try again."),
 							full_errmsg,
-							strlen(purple_account_get_password(session->account)),
+							strlen(purple_connection_get_password(session->gc)),
 							MSIM_MAX_PASSWORD_LENGTH);
 
 					/* Replace full_errmsg. */


More information about the Commits mailing list