Mercurial > pidgin.yaz
changeset 21790:bf03e9336c45
gets rid of one valgrind warning
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Thu, 06 Dec 2007 07:24:10 +0000 |
parents | cbf778310bdd |
children | c80d0732fa40 |
files | libpurple/protocols/msn/notification.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Thu Dec 06 01:30:38 2007 +0000 +++ b/libpurple/protocols/msn/notification.c Thu Dec 06 07:24:10 2007 +0000 @@ -1579,6 +1579,7 @@ { xmlnode * root; gchar * buf; + int xmllen; g_return_if_fail(cmd->payload != NULL); @@ -1588,10 +1589,10 @@ return; } - buf = xmlnode_to_formatted_str(root, NULL); + buf = xmlnode_to_formatted_str(root, &xmllen); /* get the payload content */ - purple_debug_info("MSNP14","GCF command payload:\n%s\n",buf); + purple_debug_info("MSNP14","GCF command payload:\n%.*s\n", xmllen, buf); g_free(buf); xmlnode_free(root);