diff options
author | Xiao-Yong Jin <xjin@anl.gov> | 2021-01-29 05:12:42 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2021-01-29 06:32:41 -0500 |
commit | 4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15 (patch) | |
tree | d4f0c2cb8265697f084f5463c9f2f7ddb50809fd /src/libhtml | |
parent | 52b599a63c488d3a80bb9f5dd97bad0b10103c54 (diff) | |
download | plan9port-4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15.tar.gz plan9port-4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15.tar.bz2 plan9port-4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15.zip |
libhtml: fix array bounds in lex
Diffstat (limited to 'src/libhtml')
-rw-r--r-- | src/libhtml/lex.c | 2 |
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; } |