Mercurial > pidgin
changeset 21955:feb92c44db87
Patch from QuLogic to correctly set the length. Closes #4515.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 29 Dec 2007 17:45:40 +0000 |
parents | 8eb1846b5c40 |
children | d1f282dbbda1 |
files | libpurple/xmlnode.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/xmlnode.c Sat Dec 29 17:43:44 2007 +0000 +++ b/libpurple/xmlnode.c Sat Dec 29 17:45:40 2007 +0000 @@ -552,6 +552,9 @@ 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; }