talons

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

commit 4ab3585743ffcdcf0efd26793241a6e347f1aa14
parent ed5f07488ab4b5b8aefeb04054ce43ce3cde2d21
Author: Colin Leroy <colin@colino.net>
Date:   Thu, 22 May 2014 11:55:38 +0200

Fix missing end-of-string

Diffstat:
Msrc/html.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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;