diff --git a/lib/ucs2_string.c b/lib/ucs2_string.c index f0b323abb4c64a566700d9d265f4451174847eaa..ae8d2491133c9f19b88599999cf14bf0d66fe1c9 100644 --- a/lib/ucs2_string.c +++ b/lib/ucs2_string.c @@ -56,7 +56,7 @@ ucs2_utf8size(const ucs2_char_t *src) unsigned long i; unsigned long j = 0; - for (i = 0; i < ucs2_strlen(src); i++) { + for (i = 0; src[i]; i++) { u16 c = src[i]; if (c >= 0x800)