aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao-Yong Jin <xjin@anl.gov>2021-01-29 05:12:42 +0000
committerDan Cross <crossd@gmail.com>2021-01-29 06:32:41 -0500
commit4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15 (patch)
treed4f0c2cb8265697f084f5463c9f2f7ddb50809fd
parent52b599a63c488d3a80bb9f5dd97bad0b10103c54 (diff)
downloadplan9port-4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15.tar.gz
plan9port-4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15.tar.bz2
plan9port-4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15.zip
libhtml: fix array bounds in lex
-rw-r--r--src/libhtml/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhtml/lex.c b/src/libhtml/lex.c
index 49c5f502..82324ba5 100644
--- a/src/libhtml/lex.c
+++ b/src/libhtml/lex.c
@@ -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;
}