aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.h
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2000-09-19 00:33:58 +0000
committerKenichi Handa <[email protected]>2000-09-19 00:33:58 +0000
commitb10d420d0f6d5e36f0dea4d673f942477da29b3a (patch)
treeae72b697072d40539c1da848bdfe767655737100 /src/charset.h
parenta3d8fcf244a7012fd3c283460bc57a6b1fcd4918 (diff)
(UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
Diffstat (limited to 'src/charset.h')
-rw-r--r--src/charset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.h b/src/charset.h
index 20b1fb72a7..83b31abf1f 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -448,8 +448,8 @@ extern int width_by_char_head[256];
(((str)[0] < 0x80 || (str)[0] >= 0xA0) \
? (bytes) = 1 \
: (((bytes) = BYTES_BY_CHAR_HEAD ((str)[0])), \
- ((str)[0] != LEADING_CODE_8_BIT_CONTROL \
- && (bytes) <= (length) \
+ ((bytes) > 1 && (bytes) <= (length) \
+ && (str)[0] != LEADING_CODE_8_BIT_CONTROL \
&& !CHAR_HEAD_P ((str)[1]) \
&& ((bytes) == 2 \
|| (!CHAR_HEAD_P ((str)[2]) \