aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-05-10 13:35:19 -0400
committerRuss Cox <rsc@swtch.com>2008-05-10 13:35:19 -0400
commitada24b4005504a9cc8035987cf5175940ae568a7 (patch)
tree51def5fcbc79322c17ff8eb56c3734dc5a5d7060 /src/cmd/troff
parent77809fb0cc7c9ff07f0ecd319240c8e3ee2c9528 (diff)
downloadplan9port-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.c2
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;