diff options
Diffstat (limited to 'protocols/msn/soap.c')
-rw-r--r-- | protocols/msn/soap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c index a1b5be76..909f6ad9 100644 --- a/protocols/msn/soap.c +++ b/protocols/msn/soap.c @@ -269,6 +269,7 @@ static int msn_soap_passport_sso_build_request( struct msn_soap_req_data *soap_r struct msn_soap_passport_sso_data *sd = soap_req->data; struct im_connection *ic = soap_req->ic; struct msn_data *md = ic->proto_data; + char pass[MAX_PASSPORT_PWLEN+1]; if( sd->redirect ) { @@ -280,8 +281,9 @@ static int msn_soap_passport_sso_build_request( struct msn_soap_req_data *soap_r else soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL ); + strncpy( pass, ic->acc->pass, MAX_PASSPORT_PWLEN ); soap_req->payload = g_markup_printf_escaped( SOAP_PASSPORT_SSO_PAYLOAD, - ic->acc->user, ic->acc->pass, md->pp_policy ); + ic->acc->user, pass, md->pp_policy ); return MSN_SOAP_OK; } |