pidgin: 5ce54652: Cleaned up version of 2f409bcdde5ebbb1ed...

qulogic at pidgin.im qulogic at pidgin.im
Sun Nov 23 17:45:38 EST 2008


-----------------------------------------------------------------
Revision: 5ce546528e882ed89b8492478e931ba96fe07155
Ancestor: 291cdab49098e3a86b94d7bc8e3d4a99fb7d15f9
Author: qulogic at pidgin.im
Date: 2008-11-23T22:29:41
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5ce546528e882ed89b8492478e931ba96fe07155

Modified files:
        libpurple/protocols/msn/notification.c
        libpurple/protocols/msn/switchboard.c

ChangeLog: 

Cleaned up version of 2f409bcdde5ebbb1edf097aeb4b4366d7c71518d:

Mark added a workaround for not having enough parameters in this command.
However, according to msnpiki and his backtraces, the index was just wrong.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	ea7644b1389c1b91eab7ea7fc66c5f3c5a769c93
+++ libpurple/protocols/msn/notification.c	bcac292057d2120800e1ebfd3433e3dbfdf4a65d
@@ -491,7 +491,7 @@ ubm_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	 * command and we are processing it */
 	if (cmd->payload == NULL) {
 		cmdproc->last_cmd->payload_cb = msg_cmd_post;
-		cmd->payload_len = atoi(cmd->params[4]);
+		cmd->payload_len = atoi(cmd->params[3]);
 	} else {
 		g_return_if_fail(cmd->payload_cb != NULL);
 
============================================================
--- libpurple/protocols/msn/switchboard.c	8a0b0cf2ed01500745519525b4c8eb5040a36970
+++ libpurple/protocols/msn/switchboard.c	2c06c39a2271dee94b565eb8eec6e9f4dfb96216
@@ -806,7 +806,7 @@ ubm_cmd(MsnCmdProc *cmdproc, MsnCommand 
 ubm_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
 {
 	purple_debug_misc("msn", "get UBM...\n");
-	cmd->payload_len = atoi(cmd->params[4]);
+	cmd->payload_len = atoi(cmd->params[3]);
 	cmdproc->last_cmd->payload_cb = msg_cmd_post;
 }
 


More information about the Commits mailing list