fix another index overflow issue

Bu işleme şunda yer alıyor:
Markus Teich
2015-11-17 00:23:51 +01:00
ebeveyn 84734c73e8
işleme b1cb3bbc20

3
sent.c
Dosyayı Görüntüle

@@ -326,7 +326,8 @@ void getfontsize(Slide *s, unsigned int *width, unsigned int *height)
for (j = NUMFONTSCALES - 1; j >= 0; j--)
if (fonts[j]->h * lfac <= xw.uh)
break;
drw_setfontset(d, fonts[++j]);
LIMIT(j, 0, NUMFONTSCALES - 1);
drw_setfontset(d, fonts[j]);
/* fit width */
*width = 0;