im.pidgin.pidgin: 4a3126ce09aff7f83c70b32f2048f5b7f302b79e

datallah at pidgin.im datallah at pidgin.im
Mon Oct 8 20:40:37 EDT 2007


revision:            4a3126ce09aff7f83c70b32f2048f5b7f302b79e
date:                2007-10-09T00:38:12
author:              datallah at pidgin.im
branch:              im.pidgin.pidgin
changelog:
Don't assume that the payload is nul delimited.

manifest:
format_version "1"

new_manifest [828203b46639617be51468bd9e30fc88ff79f263]

old_revision [c5051010dd50f9fdb7f85d779d882ce8bbc149f2]

patch "libpurple/protocols/msn/notification.c"
 from [69711ff05d72c9f038eebd14827e975eaf245202]
   to [b7b85d21d33df8552b4217d078c726f132add178]
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	69711ff05d72c9f038eebd14827e975eaf245202
+++ libpurple/protocols/msn/notification.c	b7b85d21d33df8552b4217d078c726f132add178
@@ -450,7 +450,7 @@ ubm_cmd_post(MsnCmdProc *cmdproc, MsnCom
 	const char *passport;
 	const char *content_type;
 
-	purple_debug_info("MSNP14","Process UBM payload:%s\n",payload);
+	purple_debug_info("MSNP14","Process UBM payload:%.*s\n", len, payload);
 	msg = msn_message_new_from_cmd(cmdproc->session, cmd);
 
 	msn_message_parse_payload(msg, payload, len,MSG_LINE_DEM,MSG_BODY_DEM);
@@ -533,7 +533,7 @@ ubm_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	}else{
 		g_return_if_fail(cmd->payload_cb != NULL);
 
-		purple_debug_info("MSNP14","UBM payload:{%s}\n",cmd->payload);
+		purple_debug_info("MSNP14","UBM payload:{%.*s}\n", cmd->payload_len, cmd->payload);
 		ubm_cmd_post(cmdproc, cmd, cmd->payload, cmd->payload_len);
 	}
 }


More information about the Commits mailing list