mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix crash when converting the font 00-Starmap_r400-8.bdf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8203 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a547084b24
commit
d8dcc25fdf
1 changed files with 2 additions and 1 deletions
|
@ -418,7 +418,8 @@ int bdf_read_header(FILE *fp, struct font* pf)
|
|||
/* calc default char*/
|
||||
if (pf->defaultchar < 0 ||
|
||||
pf->defaultchar < firstchar ||
|
||||
pf->defaultchar > limit_char )
|
||||
pf->defaultchar > limit_char ||
|
||||
pf->defaultchar > lastchar)
|
||||
pf->defaultchar = firstchar;
|
||||
|
||||
/* calc font size (offset/width entries)*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue