Ensure we always have some target space in GConverterOutputStream
authorJürg Billeter <j@bitron.ch>
Thu, 27 May 2010 14:55:53 +0000 (16:55 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 11 Jun 2010 07:55:23 +0000 (09:55 +0200)
commit86592d675ff8f1bf0f647fe926ea6085e7b1f2bc
treecae5efc5994fec46baddb15b0fc851bbc57d56db
parent85ea72c0c5716b6ebd62272e17e8e4e3b9014f65
Ensure we always have some target space in GConverterOutputStream

When the converter fills the whole buffer without reading all input,
we need to enlarge the buffer. Otherwise we get an assertion failure
for `outbuf_size > 0' in g_converter_convert.

https://bugzilla.gnome.org/show_bug.cgi?id=619945
gio/gconverteroutputstream.c