diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2022-04-20 09:29:09 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2022-04-20 10:23:51 +0200 |
commit | be8c01946ab1a1d4b79fdc5358541d630f14dc0a (patch) | |
tree | ca27b5da4a47bc0a8da8fa0c808388d8840b76cd | |
parent | 488b156fe2cc8aca6946a49236ec7b7698fceda4 (diff) | |
download | xorg-lib-libX11-be8c01946ab1a1d4b79fdc5358541d630f14dc0a.tar.gz |
lcCT: use the correct index for checking the second byte
(Not that it will make any difference, as the checking of these
high bits looks like an excess of precaution.)
This fixes issue #134.
Reported-by: RafaĆ Mikrut
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
-rw-r--r-- | src/xlibi18n/lcCT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlibi18n/lcCT.c b/src/xlibi18n/lcCT.c index 2ffb0097..9e797036 100644 --- a/src/xlibi18n/lcCT.c +++ b/src/xlibi18n/lcCT.c @@ -620,7 +620,7 @@ _XlcCheckCTSequence( return resOK; case XctExtSeg: if (tmp_ctext_len > 2 - && (tmp_ctext[0] & 0x80) && (tmp_ctext[0] & 0x80)) { + && (tmp_ctext[0] & 0x80) && (tmp_ctext[1] & 0x80)) { unsigned int msb = tmp_ctext[0] & 0x7f; unsigned int lsb = tmp_ctext[1] & 0x7f; ext_seg_left = (msb << 7) + lsb; |