]> git.wincent.com - wikitext.git/commitdiff
Avoid allocation in _Wikitext_append_sanitized_link_target
authorWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 22:54:42 +0000 (00:54 +0200)
committerWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 22:56:05 +0000 (00:56 +0200)
Rather than allocating a buffer and then copying (appending) to
the output buffer, append directly to the output buffer along the
way.

At the same time, drop the now unneeded dest_ptr parameter to the
_Wikitext_utf8_to_utf32 function.

Signed-off-by: Wincent Colaiuta <win@wincent.com>

No differences found