fix another index overflow issue
This commit is contained in:
parent
84734c73e8
commit
b1cb3bbc20
3
sent.c
3
sent.c
@ -326,7 +326,8 @@ void getfontsize(Slide *s, unsigned int *width, unsigned int *height)
|
|||||||
for (j = NUMFONTSCALES - 1; j >= 0; j--)
|
for (j = NUMFONTSCALES - 1; j >= 0; j--)
|
||||||
if (fonts[j]->h * lfac <= xw.uh)
|
if (fonts[j]->h * lfac <= xw.uh)
|
||||||
break;
|
break;
|
||||||
drw_setfontset(d, fonts[++j]);
|
LIMIT(j, 0, NUMFONTSCALES - 1);
|
||||||
|
drw_setfontset(d, fonts[j]);
|
||||||
|
|
||||||
/* fit width */
|
/* fit width */
|
||||||
*width = 0;
|
*width = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user