From e25c754918ae26e8b9e68a47bc1af36248e91800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 12 Jul 2019 09:18:14 +0200 Subject: New upstream version 6.9.2 --- src/euc_tw.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/euc_tw.c') diff --git a/src/euc_tw.c b/src/euc_tw.c index 7683336..c9acaf1 100644 --- a/src/euc_tw.c +++ b/src/euc_tw.c @@ -63,27 +63,27 @@ is_valid_mbc_string(const UChar* p, const UChar* end) } else if (*p < 0xa1) { if (*p == 0x8e) { - p++; - if (p >= end) return FALSE; - if (*p < 0xa1 || *p > 0xb0) return FALSE; - p++; - if (p >= end) return FALSE; - if (*p < 0xa1 || *p == 0xff) - return FALSE; - p++; - if (p >= end) return FALSE; - if (*p < 0xa1 || *p == 0xff) - return FALSE; - p++; + p++; + if (p >= end) return FALSE; + if (*p < 0xa1 || *p > 0xb0) return FALSE; + p++; + if (p >= end) return FALSE; + if (*p < 0xa1 || *p == 0xff) + return FALSE; + p++; + if (p >= end) return FALSE; + if (*p < 0xa1 || *p == 0xff) + return FALSE; + p++; } else - return FALSE; + return FALSE; } else if (*p < 0xff) { p++; if (p >= end) return FALSE; if (*p < 0xa1 || *p == 0xff) - return FALSE; + return FALSE; p++; } else -- cgit v1.2.3