diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-06 01:31:15 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-06 01:31:15 -0700 |
commit | 385fbc4b9624f944691c73a8b4618f069e54bd11 (patch) | |
tree | b1da9c59bbd6a0f69d2f4c29abfa5d6246b1fab4 | |
parent | 2af3e232ff468b288dd4e0dbdab1a17312d801c5 (diff) |
Fixed string handling bug with long MSN passwords.
-rw-r--r-- | protocols/msn/soap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c index 909f6ad9..0ae6ebf6 100644 --- a/protocols/msn/soap.c +++ b/protocols/msn/soap.c @@ -282,6 +282,7 @@ static int msn_soap_passport_sso_build_request( struct msn_soap_req_data *soap_r soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL ); strncpy( pass, ic->acc->pass, MAX_PASSPORT_PWLEN ); + pass[MAX_PASSPORT_PWLEN] = '\0'; soap_req->payload = g_markup_printf_escaped( SOAP_PASSPORT_SSO_PAYLOAD, ic->acc->user, pass, md->pp_policy ); |