]> git.eshelyaron.com Git - emacs.git/commitdiff
(UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Tue, 19 Sep 2000 00:33:58 +0000 (00:33 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 19 Sep 2000 00:33:58 +0000 (00:33 +0000)
src/charset.h

index 20b1fb72a7bec37381498ef9036c2235a9d3b76e..83b31abf1f6380421df329b58871af9df963a61c 100644 (file)
@@ -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])                  \