summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utf8.c b/utils/utf8.c
index 6721305fb..840c5e1e6 100644
--- a/utils/utf8.c
+++ b/utils/utf8.c
@@ -172,7 +172,7 @@ size_t utf8_from_ucs4(uint32_t c, char *s)
return 3;
}
- return len;
+ return 6 - len;
#else
uint8_t *buf;
uint8_t l = 0;