summaryrefslogtreecommitdiff
path: root/pango/mini-fribidi
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-11-26 00:29:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-11-26 00:29:17 +0000
commit568f8c18c43d38a5207d39a82d26e61838ad569f (patch)
tree98b33bd77ccc11181cf26c213808a770714d0bc5 /pango/mini-fribidi
parent524c9bdd61df61c9f4cfc42f5f2c80b7ef64bd21 (diff)
downloadpango-568f8c18c43d38a5207d39a82d26e61838ad569f.tar.gz
Fix off-by-one in check for non-BMP characters. (#91834, He Qiangqiang)
Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): Fix off-by-one in check for non-BMP characters. (#91834, He Qiangqiang)
Diffstat (limited to 'pango/mini-fribidi')
-rw-r--r--pango/mini-fribidi/fribidi_get_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/mini-fribidi/fribidi_get_type.c b/pango/mini-fribidi/fribidi_get_type.c
index 3f32d5e0..e81607a2 100644
--- a/pango/mini-fribidi/fribidi_get_type.c
+++ b/pango/mini-fribidi/fribidi_get_type.c
@@ -40,7 +40,7 @@ _pango_fribidi_get_type(FriBidiChar uch)
{
FriBidiPropCharType *block;
int i = uch % 256, j = uch / 256;
- if (j > 256)
+ if (j >= 256)
return FRIBIDI_TYPE_LTR;
block = FriBidiPropertyBlocks[j];