changeset 24505:dc7942955a7a

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.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 23 Nov 2008 22:29:41 +0000
parents afbc5c1203f2
children 82452077f0db
files libpurple/protocols/msn/notification.c libpurple/protocols/msn/switchboard.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sun Nov 23 21:57:52 2008 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun Nov 23 22:29:41 2008 +0000
@@ -491,7 +491,7 @@
 	 * 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);
 
--- a/libpurple/protocols/msn/switchboard.c	Sun Nov 23 21:57:52 2008 +0000
+++ b/libpurple/protocols/msn/switchboard.c	Sun Nov 23 22:29:41 2008 +0000
@@ -806,7 +806,7 @@
 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;
 }