From ccbf72d4077d874756304d7c627d4caeda68885f Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Thu, 18 Aug 2011 05:48:56 +0200 Subject: Fix off-by-one bug in font matching --- libass/ass_fontselect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c index ffc7047..01daa01 100644 --- a/libass/ass_fontselect.c +++ b/libass/ass_fontselect.c @@ -340,7 +340,7 @@ static char *select_font(ASS_FontSelector *priv, ASS_Library *library, font_info_compare); // check glyph coverage - while (idx < priv->n_font) { + while (idx < priv->n_font - 1) { ASS_FontProvider *provider = font_infos[idx].provider; if (!provider || !provider->funcs.check_glyph) { idx++; -- cgit v1.2.3