summaryrefslogtreecommitdiff
path: root/src/euc_tw.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-07-12 09:18:18 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-07-12 09:18:18 +0200
commit5c29b174a11e992dac68553f08645fe4a825c315 (patch)
tree7c72e5a49112a844a53a2c10ef1fda47867aee92 /src/euc_tw.c
parent6cac1738b6aebf75b29d225775030d291319f9a2 (diff)
parente25c754918ae26e8b9e68a47bc1af36248e91800 (diff)
Update upstream source from tag 'upstream/6.9.2'
Update to upstream version '6.9.2' with Debian dir a351ad757689417d0ede510a023d625faee8e3e9
Diffstat (limited to 'src/euc_tw.c')
-rw-r--r--src/euc_tw.c28
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