# HG changeset patch # User Ka-Hing Cheung # Date 1196925850 0 # Node ID bf03e9336c45d24023a16ab435208730a1c57008 # Parent cbf778310bdd3daebfc11e76ba9ece7b099d2980 gets rid of one valgrind warning diff -r cbf778310bdd -r bf03e9336c45 libpurple/protocols/msn/notification.c --- 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);