cpw.qulogic.msnp16: 1e8163f7: Endpoint names are case-insensitive, so ...

qulogic at pidgin.im qulogic at pidgin.im
Tue Dec 15 04:01:51 EST 2009


-----------------------------------------------------------------
Revision: 1e8163f7de08bd9742323ba3f98a56ee16a640d6
Ancestor: 86e67685e6df2f8c65c32e403b6495888edb844a
Author: qulogic at pidgin.im
Date: 2009-12-15T01:22:59
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/1e8163f7de08bd9742323ba3f98a56ee16a640d6

Modified files:
        libpurple/protocols/msn/user.c

ChangeLog: 

Endpoint names are case-insensitive, so put the id in lowercase always.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/user.c	753e4f9340fc171ad04b2028316dcd9e5447b6a4
+++ libpurple/protocols/msn/user.c	aaa399150266d956de525647520648bcf10f7f3d
@@ -247,13 +247,19 @@ void
 }
 
 void
-msn_user_set_endpoint_data(MsnUser *user, const char *endpoint, MsnUserEndpoint *data)
+msn_user_set_endpoint_data(MsnUser *user, const char *input, MsnUserEndpoint *data)
 {
 	MsnUserEndpoint *new;
+	char *endpoint;
+
 	g_return_if_fail(user != NULL);
+	g_return_if_fail(input != NULL);
 
+	endpoint = g_ascii_strdown(input, -1);
+
 	if (data == NULL) {
 		g_hash_table_remove(user->endpoints, endpoint);
+		g_free(endpoint);
 		return;
 	}
 
@@ -266,6 +272,8 @@ msn_user_set_endpoint_data(MsnUser *user
 
 	new->clientid = data->clientid;
 	new->extcaps = data->extcaps;
+
+	g_free(endpoint);
 }
 
 void


More information about the Commits mailing list