summaryrefslogtreecommitdiff
path: root/src/euc_tw.c
diff options
context:
space:
mode:
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