From: Pavel Charvat Date: Mon, 28 Apr 2008 12:18:40 +0000 (+0200) Subject: XML: Small bugfix in xml_merge_chars. X-Git-Tag: holmes-import~449^2~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7462f9e27978542b37e1745b9a8fa80fb07dab3d;p=libucw.git XML: Small bugfix in xml_merge_chars. --- diff --git a/sherlock/xml/parse.c b/sherlock/xml/parse.c index 6af02514..5581ed59 100644 --- a/sherlock/xml/parse.c +++ b/sherlock/xml/parse.c @@ -1255,6 +1255,7 @@ xml_merge_chars(struct xml_context *ctx UNUSED, struct xml_node *node, struct me { p = mp_spread(pool, p, son->len + 1); memcpy(p, son->text, son->len); + p += son->len; } *p++ = 0; return mp_end(pool, p); @@ -1268,6 +1269,7 @@ xml_append_dom_chars(char *p, struct mempool *pool, struct xml_node *node) { p = mp_spread(pool, p, son->len + 1); memcpy(p, son->text, son->len); + p += son->len; } else if (son->type == XML_NODE_ELEM) p = xml_append_dom_chars(p, pool, son);