summaryrefslogtreecommitdiff
path: root/lib/http_chunks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-19 14:23:11 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-19 23:43:10 +0100
commit13bc1ea9bcef34c4beb384549e4be64e341426db (patch)
tree1cebebc71d6a3d2a1fb6d25eef9c2870fc46702f /lib/http_chunks.c
parente71542a9d9d043db454a49a35440332ec893cf04 (diff)
downloadcurl-13bc1ea9bcef34c4beb384549e4be64e341426db.tar.gz
http_chunks: correct and clarify a comment on hexnumber length
... and also rename the define for max length. Closes #6489
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r--lib/http_chunks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c
index 70db97e31..3a878242e 100644
--- a/lib/http_chunks.c
+++ b/lib/http_chunks.c
@@ -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--;