Mercurial > pidgin.yaz
changeset 20979:cb5cbe04a340
Prevent strlen() on non-nul-terminated string.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 17 Oct 2007 18:13:33 +0000 |
parents | d947d75635fb |
children | 2ba0963b5bdc 64644b98c20c 461d6654aca1 |
files | libpurple/protocols/msn/notification.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Wed Oct 17 03:46:27 2007 +0000 +++ b/libpurple/protocols/msn/notification.c Wed Oct 17 18:13:33 2007 +0000 @@ -414,7 +414,7 @@ { 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); } }