mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
htmlroff: fix array bounds
This commit is contained in:
parent
4e6bb208eb
commit
0144f87dc6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue