summaryrefslogtreecommitdiff
path: root/bk_paper.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-15 14:12:37 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-15 14:12:37 +0000
commite1c8ba107a92ccc79facb1453d297a9f89ec8dcc (patch)
treecddb4357c1c1f1f92b355b06f08eff2fb76ca57b /bk_paper.c
parent8100588592f8c84f049870a17e6401646378dc5f (diff)
downloadhalibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.zip
halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.tar.gz
halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.tar.bz2
halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.tar.xz
Prevent a tight loop. Oops.
[originally from svn r4080]
Diffstat (limited to 'bk_paper.c')
-rw-r--r--bk_paper.c4
1 files changed, 3 insertions, 1 deletions
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.