pidgin: 1ab9e9dc: UTF-8 friendly password truncation
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Wed Apr 23 11:05:44 EDT 2008
-----------------------------------------------------------------
Revision: 1ab9e9dc145f63255641fbbb9e5a6df1ecf761e9
Ancestor: 67b74ed75ebb5cffa3dd71fb9a5a3d25a4176a8f
Author: nosnilmot at pidgin.im
Date: 2008-04-23T14:56:30
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1ab9e9dc145f63255641fbbb9e5a6df1ecf761e9
Modified files:
libpurple/protocols/msnp9/nexus.c
ChangeLog:
UTF-8 friendly password truncation
-------------- next part --------------
============================================================
--- libpurple/protocols/msnp9/nexus.c 80d89e3a24685afd7230a16037123b06d483c694
+++ libpurple/protocols/msnp9/nexus.c 701bdb74e359349b2caf31802986ca24ec7ab8c7
@@ -337,7 +337,8 @@ login_connect_cb(gpointer data, PurpleSs
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);
More information about the Commits
mailing list