aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/supplemental/http/http_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplemental/http/http_chunk.c b/src/supplemental/http/http_chunk.c
index 9333548e..20644d37 100644
--- a/src/supplemental/http/http_chunk.c
+++ b/src/supplemental/http/http_chunk.c
@@ -315,7 +315,7 @@ nni_http_chunks_parse(nni_http_chunks *cl, void *buf, size_t n, size_t *lenp)
break;
case CS_DATA:
- if ((rv = chunk_ingest_data(cl, src + i, n, &cnt)) !=
+ if ((rv = chunk_ingest_data(cl, src + i, n - i, &cnt)) !=
0) {
return (rv);
}