Mercurial > pidgin
diff libpurple/protocols/msn/notification.c @ 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 | 7ac87187bbec |
| children | 382bc33e8824 75be80ddeca5 |
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);
