summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 1644201f67..baaec13d3c 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -699,7 +699,7 @@ struct font* font_get(int font)
699 struct font* pf; 699 struct font* pf;
700 if (font == FONT_UI) 700 if (font == FONT_UI)
701 font = MAXFONTS-1; 701 font = MAXFONTS-1;
702 if (font <= FONT_SYSFIXED) 702 if (font <= FONT_SYSFIXED || font >= MAXFONTS)
703 return &sysfont; 703 return &sysfont;
704 704
705 while (1) { 705 while (1) {