fix another index overflow issue - sent - simple plaintext presentation tool
 (HTM) git clone git://git.suckless.org/sent
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b1cb3bbc2085bc30e0a456d02e7eb68d5665a5b2
 (DIR) parent 84734c73e82b8b30e2eef82c192a53010fb2d35f
 (HTM) Author: Markus Teich <markus.teich@stusta.mhn.de>
       Date:   Tue, 17 Nov 2015 00:23:51 +0100
       
       fix another index overflow issue
       
       Diffstat:
         M sent.c                              |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/sent.c b/sent.c
       @@ -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;