diff options
author | Russ Cox <rsc@swtch.com> | 2008-05-10 13:35:19 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-05-10 13:35:19 -0400 |
commit | ada24b4005504a9cc8035987cf5175940ae568a7 (patch) | |
tree | 51def5fcbc79322c17ff8eb56c3734dc5a5d7060 /src/cmd/troff | |
parent | 77809fb0cc7c9ff07f0ecd319240c8e3ee2c9528 (diff) | |
download | plan9port-ada24b4005504a9cc8035987cf5175940ae568a7.tar.gz plan9port-ada24b4005504a9cc8035987cf5175940ae568a7.tar.bz2 plan9port-ada24b4005504a9cc8035987cf5175940ae568a7.zip |
misc: array bounds fixes that gcc finds (John Gosset)
Diffstat (limited to 'src/cmd/troff')
-rw-r--r-- | src/cmd/troff/t10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/troff/t10.c b/src/cmd/troff/t10.c index 38090eac..b037bdda 100644 --- a/src/cmd/troff/t10.c +++ b/src/cmd/troff/t10.c @@ -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; |