From 17123ee650212fbb1a1cc828666df1a5c06a4b90 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 24 Sep 2015 10:34:19 +0200 Subject: [PATCH] ass_font: fix broken loop condition As pointed out in #198. This is certainly just a typo. Fixes #198. --- libass/ass_font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_font.c b/libass/ass_font.c index 7dd0e8c..0b924b5 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -192,7 +192,7 @@ static int add_face(ASS_FontSelector *fontsel, ASS_Font *font, uint32_t ch) // The font provider gave us a post_script name and is not sure // about the face index.. so use the postscript name to find the // correct face_index in the collection! - for (int i = 0; face->num_faces; i++) { + for (int i = 0; i < face->num_faces; i++) { FT_Done_Face(face); error = FT_New_Face(font->ftlibrary, path, i, &face); if (error) { -- 2.40.0