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)
This commit is contained in:
Lephe 2022-03-22 18:48:06 +00:00
parent 2bf5dd93f4
commit 93169e8803
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}