html: fix handling of null byte
commitce2062d9e29bf165ba8a70bfc92ff3ab08338d53
authorPeter Prohaska <pitrp@web.de>
Wed, 11 Nov 2020 21:16:21 +0000 (11 22:16 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 15:13:58 +0000 (19 16:13 +0100)
tree9d6243e7adf8abd93ab4b8ce8fbc84233c242ef7
parent4e4b30effb773e8cb0c9c23fd664a11bbe5b4076
html: fix handling of null byte

A return value of `len` or more means that the output was truncated.

Signed-off-by: Peter Prohaska <pitrp@web.de>
Signed-off-by: Christian Hesse <mail@eworm.de>
html.c