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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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