http_chunks: correct and clarify a comment on hexnumber length

... and also rename the define for max length.

Closes #6489
This commit is contained in:
Daniel Stenberg 2021-01-19 14:23:11 +01:00
parent e71542a9d9
commit 13bc1ea9bc
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 6 deletions

View file

@ -137,7 +137,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn,
switch(ch->state) {
case CHUNK_HEX:
if(isxdigit_ascii(*datap)) {
if(ch->hexindex < MAXNUM_SIZE) {
if(ch->hexindex < CHUNK_MAXNUM_LEN) {
ch->hexbuffer[ch->hexindex] = *datap;
datap++;
length--;