Mercurial > pidgin
comparison libpurple/protocols/msn/nexus.c @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | e10e419e6067 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
387 | 387 |
388 purple_debug_info("msn", "Starting Windows Live ID authentication\n"); | 388 purple_debug_info("msn", "Starting Windows Live ID authentication\n"); |
389 msn_session_set_login_step(session, MSN_LOGIN_STEP_GET_COOKIE); | 389 msn_session_set_login_step(session, MSN_LOGIN_STEP_GET_COOKIE); |
390 | 390 |
391 username = purple_account_get_username(session->account); | 391 username = purple_account_get_username(session->account); |
392 password = purple_connection_get_password(session->account->gc); | 392 password = purple_connection_get_password(purple_account_get_connection(session->account)); |
393 if (g_utf8_strlen(password, -1) > 16) { | 393 if (g_utf8_strlen(password, -1) > 16) { |
394 /* max byte size for 16 utf8 characters is 64 + 1 for the null */ | 394 /* max byte size for 16 utf8 characters is 64 + 1 for the null */ |
395 gchar truncated[65]; | 395 gchar truncated[65]; |
396 g_utf8_strncpy(truncated, password, 16); | 396 g_utf8_strncpy(truncated, password, 16); |
397 password_xml = g_markup_escape_text(truncated, -1); | 397 password_xml = g_markup_escape_text(truncated, -1); |