summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/html/html-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 1d76a9c5..27292c13 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1327,7 +1327,7 @@ static void draw_flow_box(fz_context *ctx, fz_html *box, float page_top, float p
t = walker.start;
if (node->style->visibility == V_VISIBLE)
{
- while (*t)
+ while (t != walker.end)
{
int l = fz_chartorune(&c, t);
t += l;