changeset 31703:b5664da02625

(UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Tue, 19 Sep 2000 00:33:58 +0000
parents ef25c62becab
children d21a5e3bfbd8
files src/charset.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.h	Tue Sep 19 00:14:17 2000 +0000
+++ b/src/charset.h	Tue Sep 19 00:33:58 2000 +0000
@@ -448,8 +448,8 @@
   (((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])			\