mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-29 13:03:36 +01:00
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:
parent
2bf5dd93f4
commit
93169e8803
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue