← Commit list

64489bc3be

Daniel Stenberg
Daniel Stenberg
2025-11-08
SUCCESS Duration: 141s

Subject

CURLOPT_READFUNCTION.md: clarify the size of the buffer

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/opts/CURLOPT_HEADERFUNCTION.md+1 -1
@@ -109,7 +109,7 @@ Nothing.
static size_t header_callback(char *buffer, size_t size,
size_t nitems, void *userdata)
{
- /* received header is 'nitems' bytes in 'buffer' NOT ZERO TERMINATED */
+ /* received header is 'nitems' bytes in 'buffer' NOT NULL-TERMINATED */
/* 'userdata' is set with CURLOPT_HEADERDATA */
return nitems;
}
docs/libcurl/opts/CURLOPT_READFUNCTION.md+2 -3
@@ -36,9 +36,8 @@ Pass a pointer to your callback function, as the prototype shows above.
This callback function gets called by libcurl as soon as it needs to read data
in order to send it to the peer - like if you ask it to upload or post data to
-the server. The data area pointed at by the pointer *buffer* should be
-filled up with at most *size* multiplied with *nitems* number of bytes
-by your function. *size* is always 1.
+the server. The data area pointed at by the pointer *buffer* should be filled
+up with at most *nitems* number of bytes by your function. *size* is always 1.
Set the *userdata* argument with the CURLOPT_READDATA(3) option.