im.pidgin.pidgin: dd9823fd27149fd383f7df18c29082f44f079e07

sadrul at pidgin.im sadrul at pidgin.im
Sat Dec 29 12:45:43 EST 2007


-----------------------------------------------------------------
Revision: dd9823fd27149fd383f7df18c29082f44f079e07
Ancestor: 63b3c8a5920ec43cbe46da7255354a36af7ab464
Author: sadrul at pidgin.im
Date: 2007-12-29T17:45:40
Branch: im.pidgin.pidgin

Modified files:
        libpurple/xmlnode.c

ChangeLog: 

Patch from QuLogic to correctly set the length. Closes #4515.

-------------- next part --------------
============================================================
--- libpurple/xmlnode.c	440646e8f8167e083facb6b9cb5ea229ae006489
+++ libpurple/xmlnode.c	efcedf1793b22ae335060f1adc2407dc964f30e0
@@ -552,6 +552,9 @@ xmlnode_to_formatted_str(xmlnode *node, 
 		g_strdup_printf("<?xml version='1.0' encoding='UTF-8' ?>" NEWLINE_S NEWLINE_S "%s", xml);
 	g_free(xml);
 
+	if (len)
+		*len += sizeof("<?xml version='1.0' encoding='UTF-8' ?>" NEWLINE_S NEWLINE_S) - 1;
+
 	return xml_with_declaration;
 }
 


More information about the Commits mailing list