[Commits] [SCM] claws branch, master, updated. 3.17.3-3-ge457fab

ticho at claws-mail.org ticho at claws-mail.org
Thu Dec 27 13:52:16 CET 2018


The branch, master has been updated
       via  e457fab6771409dbedf04739155d6131cdd00e62 (commit)
      from  d2ec30de3297fe62fcd8aba8975b6b668f1431ef (commit)

Summary of changes:
 src/html.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit e457fab6771409dbedf04739155d6131cdd00e62
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Dec 27 13:50:13 2018 +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.

diff --git a/src/html.c b/src/html.c
index b702404..eb921c7 100644
--- 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;
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list