diff options
Diffstat (limited to 'firmware/font.c')
-rw-r--r-- | firmware/font.c | 2 |
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) | |||
723 | close(fd); | 723 | close(fd); |
724 | } else { | 724 | } else { |
725 | /* load latin1 chars into cache */ | 725 | /* load latin1 chars into cache */ |
726 | for ( ch = 32 ; ch < 256 ; ch++ ); | 726 | for ( ch = 32 ; ch < 256 && ch < pf->cache._capacity + 32; ch++ ) |
727 | font_get_bits(pf, ch); | 727 | font_get_bits(pf, ch); |
728 | } | 728 | } |
729 | } | 729 | } |