commit e457fab6771409dbedf04739155d6131cdd00e62
parent d2ec30de3297fe62fcd8aba8975b6b668f1431ef
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Thu, 27 Dec 2018 13:50:13 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/html.c b/src/html.c
@@ -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;