basic/utf8: add missing assertion

Follow-up for 104a6b8c39
This commit is contained in:
Mike Yuan
2025-02-18 14:33:01 +01:00
parent 3ab19c1f0a
commit 012658fc85

View File

@@ -613,6 +613,8 @@ size_t utf8_console_width(const char *str) {
size_t utf8_last_length(const char *s, size_t n) {
int r;
assert(s);
if (n == SIZE_MAX)
n = strlen(s);