summaryrefslogtreecommitdiff
path: root/txttopng.c
diff options
context:
space:
mode:
Diffstat (limited to 'txttopng.c')
-rw-r--r--txttopng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/txttopng.c b/txttopng.c
index a9649c9..bac5900 100644
--- a/txttopng.c
+++ b/txttopng.c
@@ -378,9 +378,10 @@ void parse_font_hexdata(FILE *aFile) {
if (line[0] == '#')
continue;
parse_font_line(line, line_no, &gGlyphset[glyphs]);
+ ++glyphs;
}
if (gGlyphs != glyphs)
- errx("glyph count changed unexpectedly\n");
+ errx("glyph count changed unexpectedly (%zu != %zu)\n", gGlyphs, glyphs);
qsort(gGlyphset, gGlyphs, sizeof *gGlyphset, compare_glyphs);
set_replacement_character();
}