summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 98bd6399fe..77cf66c737 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -723,7 +723,7 @@ static void glyph_cache_load(struct font* pf)
close(fd);
} else {
/* load latin1 chars into cache */
- for ( ch = 32 ; ch < 256 ; ch++ );
+ for ( ch = 32 ; ch < 256 && ch < pf->cache._capacity + 32; ch++ )
font_get_bits(pf, ch);
}
}