summaryrefslogtreecommitdiff
path: root/fmtutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'fmtutils.c')
-rw-r--r--fmtutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmtutils.c b/fmtutils.c
index a5a4fe62f34e..78a0f8b792c9 100644
--- a/fmtutils.c
+++ b/fmtutils.c
@@ -233,7 +233,7 @@ utf_16le_to_utf_8_truncated(const wchar_t *utf_16, char *utf_8,
*utf_8++ = ((uc >> 12) & 0x3F) | 0x80;
*utf_8++ = ((uc >> 6) & 0x3F) | 0x80;
*utf_8++ = ((uc >> 0) & 0x3F) | 0x80;
- utf_8_len -= 3;
+ utf_8_len -= 4;
}
}