From 93169e880326702185eaa339e28ab94f3696c1d5 Mon Sep 17 00:00:00 2001 From: Lephe Date: Tue, 22 Mar 2022 18:48:06 +0000 Subject: [PATCH] render: fix drsize() skipping one byte past NUL This would work if the string has double NUL, which is common enough that this bug never came up before. x) --- src/render/topti.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/render/topti.c b/src/render/topti.c index 0fe2868..f7f88e4 100644 --- a/src/render/topti.c +++ b/src/render/topti.c @@ -169,7 +169,6 @@ char const *drsize(char const *str_char, font_t const *f, int width, int *w) code_point = topti_utf8_next(&str); if(!code_point) { - str_char = (void *)str; break; }