summary refs log tree commit diff
path: root/bin/fbclock.c
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-01-31 17:33:05 -0500
committerJune McEnroe <programble@gmail.com>2018-01-31 17:33:05 -0500
commit3f08d8a658b06f29cc54f3a0896cebdeec6b477e (patch)
treeab7df156881e8c65b69172a1f756fd77c3c6d216 /bin/fbclock.c
parentStyle tweak fbclock (diff)
downloadsrc-3f08d8a658b06f29cc54f3a0896cebdeec6b477e.tar.gz
src-3f08d8a658b06f29cc54f3a0896cebdeec6b477e.zip
Only load 128 glyphs in fbclock
There's no point loading more than ASCII since it doesn't interpret the
unicode table at all.
Diffstat (limited to 'bin/fbclock.c')
-rw-r--r--bin/fbclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fbclock.c b/bin/fbclock.c
index b6da04ec..d99c655d 100644
--- a/bin/fbclock.c
+++ b/bin/fbclock.c
@@ -65,8 +65,8 @@ int main() {
         errx(EX_DATAERR, "%s: weird header size %d", fontPath, header.headerSize);
     }
 
-    uint8_t glyphs[header.glyphCount][header.glyphSize];
-    count = gzfread(glyphs, header.glyphSize, header.glyphCount, font);
+    uint8_t glyphs[128][header.glyphSize];
+    count = gzfread(glyphs, header.glyphSize, 128, font);
     if (!count) errx(EX_IOERR, "%s: %s", fontPath, gzerror(font, NULL));
 
     assert(Z_OK == gzclose(font));