diff options
author | Kenichi Handa <handa@m17n.org> | 2000-09-19 00:33:58 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2000-09-19 00:33:58 +0000 |
commit | b10d420d0f6d5e36f0dea4d673f942477da29b3a (patch) | |
tree | ae72b697072d40539c1da848bdfe767655737100 | |
parent | a3d8fcf244a7012fd3c283460bc57a6b1fcd4918 (diff) | |
download | emacs-b10d420d0f6d5e36f0dea4d673f942477da29b3a.tar.gz |
(UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
-rw-r--r-- | src/charset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.h b/src/charset.h index 20b1fb72a7b..83b31abf1f6 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]) \ |