diff options
author | Xiao-Yong Jin <xjin@anl.gov> | 2021-01-29 05:38:41 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2021-01-29 06:32:41 -0500 |
commit | 0144f87dc6c7f2f6becbd55519e433a9b36a466f (patch) | |
tree | 6b7863e1ec9554da26ef328be7ed4de6326a7c3e /src/cmd | |
parent | 4e6bb208eb96baae65fd6b1bf99aaa1115b9a9ba (diff) | |
download | plan9port-0144f87dc6c7f2f6becbd55519e433a9b36a466f.tar.gz plan9port-0144f87dc6c7f2f6becbd55519e433a9b36a466f.tar.bz2 plan9port-0144f87dc6c7f2f6becbd55519e433a9b36a466f.zip |
htmlroff: fix array bounds
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/htmlroff/roff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/htmlroff/roff.c b/src/cmd/htmlroff/roff.c index 34b794be..f52e0734 100644 --- a/src/cmd/htmlroff/roff.c +++ b/src/cmd/htmlroff/roff.c @@ -257,7 +257,7 @@ copyarg(void) int c; Rune *r; - if(_readx(buf, sizeof buf, ArgMode, 0) < 0) + if(_readx(buf, MaxLine, ArgMode, 0) < 0) return nil; r = runestrstr(buf, L("\\\"")); if(r){ @@ -280,7 +280,7 @@ readline(int m) static Rune buf[MaxLine]; Rune *r; - if(_readx(buf, sizeof buf, m, 1) < 0) + if(_readx(buf, MaxLine, m, 1) < 0) return nil; r = erunestrdup(buf); return r; |