summaryrefslogtreecommitdiff
path: root/imap/src/c-client/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap/src/c-client/utf8.c')
-rw-r--r--imap/src/c-client/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/src/c-client/utf8.c b/imap/src/c-client/utf8.c
index c752d7a2..3f75ed98 100644
--- a/imap/src/c-client/utf8.c
+++ b/imap/src/c-client/utf8.c
@@ -1033,7 +1033,7 @@ unsigned long utf8_get_raw (unsigned char **s,unsigned long *i)
}
else if (c == 0xed) { /* U+d000 - U+d7ff */
c &= 0x0f;
- if ((c1 >= 0x80) && (c1 <= 0x9f)) more = 2;
+ if (j == 0 || ((c1 >= 0x80) && (c1 <= 0x9f))) more = 2;
}
else if (c < 0xf0) { /* U+e000 - U+ffff */
c &= 0x0f;