libhtml: fix array bounds in lex

This commit is contained in:
Xiao-Yong Jin 2021-01-29 05:12:42 +00:00 committed by Dan Cross
parent 52b599a63c
commit 4056d6be4d

View file

@ -586,7 +586,7 @@ getplaindata(TokenSource* ts, Token* a, int* pai)
}
if(c != 0){
buf[j++] = c;
if(j == sizeof(buf)-1){
if(j == BIGBUFSIZE-1){
s = buftostr(s, buf, j);
j = 0;
}