Fix incorrect charset conversion in sc_html_read_line().

When converting from single-byte to multi-byte encoding,
the resulting string can sometimes have more bytes than
the original.
This commit is contained in:
Andrej Kacian 2018-12-27 13:50:13 +01:00
parent 516496ca12
commit 2ceb0d43d3

View file

@ -135,7 +135,7 @@ gchar *sc_html_parse(SC_HTMLParser *parser)
static SC_HTMLState sc_html_read_line(SC_HTMLParser *parser)
{
gchar buf[SC_HTMLBUFSIZE];
gchar buf2[SC_HTMLBUFSIZE];
gchar buf2[SC_HTMLBUFSIZE*4];
gint index;
gint n;