mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-06 04:28:27 +02:00
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>
This commit is contained in:
parent
488b156fe2
commit
be8c01946a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue