[Commits] [SCM] claws branch, master, updated. 3.9.3-213-g4ab3585

colin at claws-mail.org colin at claws-mail.org
Thu May 22 11:55:32 CEST 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  4ab3585743ffcdcf0efd26793241a6e347f1aa14 (commit)
      from  ed5f07488ab4b5b8aefeb04054ce43ce3cde2d21 (commit)


- Log -----------------------------------------------------------------
commit 4ab3585743ffcdcf0efd26793241a6e347f1aa14
Author: Colin Leroy <colin at colino.net>
Date:   Thu May 22 11:55:38 2014 +0200

    Fix missing end-of-string

diff --git a/src/html.c b/src/html.c
index db01262..f7b0ac4 100644
--- a/src/html.c
+++ b/src/html.c
@@ -449,7 +449,8 @@ static SC_HTMLState sc_html_read_line(SC_HTMLParser *parser)
 	if (n == 0) {
 		parser->state = SC_HTML_EOF;
 		return SC_HTML_EOF;
-	}
+	} else
+		buf[n] = '\0';
 
 	if (conv_convert(parser->conv, buf2, sizeof(buf2), buf) < 0) {
 		index = parser->bufp - parser->buf->str;

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

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list