summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/charset/util_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/charset/util_str.c b/lib/util/charset/util_str.c
index 30961d068a..ff53b1875e 100644
--- a/lib/util/charset/util_str.c
+++ b/lib/util/charset/util_str.c
@@ -184,7 +184,7 @@ _PUBLIC_ size_t strlen_m_ext(const char *s, charset_t src_charset, charset_t dst
count += 1;
} else if (c < 0x800) {
count += 2;
- } else if (c < 0x1000) {
+ } else if (c < 0x10000) {
count += 3;
} else {
count += 4;