mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
libhtml: fix array bounds in lex
This commit is contained in:
parent
52b599a63c
commit
4056d6be4d
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ getplaindata(TokenSource* ts, Token* a, int* pai)
|
||||||
}
|
}
|
||||||
if(c != 0){
|
if(c != 0){
|
||||||
buf[j++] = c;
|
buf[j++] = c;
|
||||||
if(j == sizeof(buf)-1){
|
if(j == BIGBUFSIZE-1){
|
||||||
s = buftostr(s, buf, j);
|
s = buftostr(s, buf, j);
|
||||||
j = 0;
|
j = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue