From: wm4 Date: Thu, 24 Sep 2015 08:34:19 +0000 (+0200) Subject: ass_font: fix broken loop condition X-Git-Tag: 0.13.0~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17123ee650212fbb1a1cc828666df1a5c06a4b90;p=libass ass_font: fix broken loop condition As pointed out in #198. This is certainly just a typo. Fixes #198. --- 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) {