From e1c8ba107a92ccc79facb1453d297a9f89ec8dcc Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 15 Apr 2004 14:12:37 +0000 Subject: Prevent a tight loop. Oops. [originally from svn r4080] --- bk_paper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v1.1