im.pidgin.pidgin: 9f2e0be2b91112e99baa40160913b63794df625f

datallah at pidgin.im datallah at pidgin.im
Wed Oct 17 14:20:42 EDT 2007


-----------------------------------------------------------------
Revision: 9f2e0be2b91112e99baa40160913b63794df625f
Ancestor: f22144bceaa379727a279c89196bfce7b297e4c7
Author: datallah at pidgin.im
Date: 2007-10-17T18:13:33
Branch: im.pidgin.pidgin

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

ChangeLog: 

Prevent strlen() on non-nul-terminated string.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	1db5caf58bcabfadb11d92dcef06e4aa5623e4d9
+++ libpurple/protocols/msn/notification.c	36ab027d085d41a0aa02373b32d1860e508eb898
@@ -414,7 +414,7 @@ msg_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	{
 		g_return_if_fail(cmd->payload_cb != NULL);
 
-		purple_debug_info("MSNP14","MSG payload:{%s}\n",cmd->payload);
+		purple_debug_info("MSNP14","MSG payload:{%.*s}\n",cmd->payload_len, cmd->payload);
 		cmd->payload_cb(cmdproc, cmd, cmd->payload, cmd->payload_len);
 	}
 }


More information about the Commits mailing list