talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 2ceb0d43d3469c600b0c52f99b752b6a8498fb4a
parent 516496ca12a2f3d51ceb27ec8b1279672be361f0
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:
Msrc/html.c | 2+-
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;