From: simon Date: Thu, 15 Apr 2004 14:12:37 +0000 (+0000) Subject: Prevent a tight loop. Oops. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/4cc00cdd0b0fa889fecefa5689dd23f8df170aee Prevent a tight loop. Oops. git-svn-id: svn://svn.tartarus.org/sgt/halibut@4080 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/bk_paper.c b/bk_paper.c index 2065151..2e05028 100644 --- a/bk_paper.c +++ b/bk_paper.c @@ -1599,8 +1599,10 @@ static int render_string(page_data *page, font_data *font, int fontsize, while (*str) { glyph = font->bmp[*str]; - if (glyph == 0xFFFF) + if (glyph == 0xFFFF) { + str++; continue; /* nothing more we can do here */ + } /* * Find which subfont this character is going in.