Mercurial > pidgin
changeset 22706:1e7713b5e068
UTF-8 friendly password truncation
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 23 Apr 2008 14:56:30 +0000 |
parents | 48abe30dc90a |
children | f2045aae33b8 |
files | libpurple/protocols/msnp9/nexus.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/nexus.c Wed Apr 23 14:55:29 2008 +0000 +++ b/libpurple/protocols/msnp9/nexus.c Wed Apr 23 14:56:30 2008 +0000 @@ -337,7 +337,8 @@ username = g_strdup(purple_url_encode(purple_account_get_username(session->account))); - password = g_strndup(purple_connection_get_password(session->account->gc), 16); + password = g_utf8_strncpy(g_strdup(purple_connection_get_password(session->account->gc)), + purple_connection_get_password(session->account->gc), 16); encpass = g_strdup(purple_url_encode(password)); g_free(password);