misc: array bounds fixes that gcc finds (John Gosset)

This commit is contained in:
Russ Cox 2008-05-10 13:35:19 -04:00
parent 77809fb0cc
commit ada24b4005
6 changed files with 6 additions and 9 deletions

View file

@ -75,7 +75,7 @@ void t_ptinit(void)
ics = EM; /* insertion character space */
for (i = 0; i < (NTAB - 1) && DTAB * (i + 1) < TABMASK; i++)
tabtab[i] = DTAB * (i + 1);
tabtab[NTAB] = 0;
tabtab[NTAB-1] = 0;
pl = 11 * INCH; /* paper length */
po = PO; /* page offset */
spacesz = SS;