mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
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:
parent
e71542a9d9
commit
13bc1ea9bc
2 changed files with 6 additions and 6 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue