mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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;
|
int c;
|
||||||
Rune *r;
|
Rune *r;
|
||||||
|
|
||||||
if(_readx(buf, sizeof buf, ArgMode, 0) < 0)
|
if(_readx(buf, MaxLine, ArgMode, 0) < 0)
|
||||||
return nil;
|
return nil;
|
||||||
r = runestrstr(buf, L("\\\""));
|
r = runestrstr(buf, L("\\\""));
|
||||||
if(r){
|
if(r){
|
||||||
|
@ -280,7 +280,7 @@ readline(int m)
|
||||||
static Rune buf[MaxLine];
|
static Rune buf[MaxLine];
|
||||||
Rune *r;
|
Rune *r;
|
||||||
|
|
||||||
if(_readx(buf, sizeof buf, m, 1) < 0)
|
if(_readx(buf, MaxLine, m, 1) < 0)
|
||||||
return nil;
|
return nil;
|
||||||
r = erunestrdup(buf);
|
r = erunestrdup(buf);
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in a new issue