diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-07-13 14:54:01 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-07-13 14:54:01 +0200 |
commit | 7bbf4ae1401bc6e40f71a32d3f97952796d85690 (patch) | |
tree | 61c3edf1a277547ecd11903427a31cd09cf42b8a /src/euc_tw.c | |
parent | f883fa5bd37b6420f5dc25027a68289c64028063 (diff) | |
parent | 62c49103a575c79d20d524b36d1b7c4db9515dbf (diff) |
Merge branch 'release/debian/6.9.2-1'debian/6.9.2-1
Diffstat (limited to 'src/euc_tw.c')
-rw-r--r-- | src/euc_tw.c | 28 |
1 files changed, 14 insertions, 14 deletions
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 |