summaryrefslogtreecommitdiff
path: root/txttopng.c
diff options
context:
space:
mode:
authorJens Schweikhardt <schweikh@schweikhardt.net>2025-08-25 23:23:08 +0200
committerJens Schweikhardt <schweikh@schweikhardt.net>2025-08-25 23:23:08 +0200
commit038886e07458576a042441246ebc16d50a4011c7 (patch)
tree8e834a2544e0494b87a551b754c37cfe443211ae /txttopng.c
parentd2b9a8ad776492b7efed59dbf34ad9c441945d9c (diff)
Provide images for blocks.
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();
}