From ee51f5847ac5e9d2663b4d3b4a5bd859e7928718 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 28 Jan 2023 23:40:59 +0100 Subject: [PATCH] CURLOPT_READFUNCTION.3: the callback 'size' arg is always 1 Reported-by: Brian Green Fixes #10328 Closes #10355 --- docs/libcurl/opts/CURLOPT_READFUNCTION.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 index 964a43e33e..ee20e8b1eb 100644 --- a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 @@ -40,7 +40,7 @@ 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 \fIbuffer\fP should be filled up with at most \fIsize\fP multiplied with \fInitems\fP number of bytes -by your function. +by your function. \fIsize\fP is always 1. Set the \fIuserdata\fP argument with the \fICURLOPT_READDATA(3)\fP option.