Evas font: Fixed wrong condition that may cause an invalid read when using OT.

SVN revision: 57024
This commit is contained in:
Tom Hacohen 2011-02-14 15:02:52 +00:00
parent 5991e80d35
commit 2a2f88aa2c
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ evas_common_font_ot_cluster_size_get(const Evas_Text_Props *props, size_t char_i
}
else
{
if (right_bound > (int) (props->text_offset + props->text_len))
if (right_bound >= (int) (props->text_offset + props->text_len))
{
items = props->text_offset + props->text_len - base_cluster;
}