From: Randolf J <34705014+jun-sheaf@users.noreply.github.com> Date: Tue, 13 Jul 2021 07:50:12 +0000 (-0700) Subject: docs: fix incorrect argument name reference X-Git-Tag: curl-7_78_0~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d9de0a09f97b755588911c74de7d78b0b8121db;p=thirdparty%2Fcurl.git docs: fix incorrect argument name reference The documentation for the read callback was erroneously referencing the nitems argument by nmemb. The error was introduced in commit ce0881edee3c7. Closes #7383 Reviewed-by: Daniel Gustafsson --- diff --git a/docs/libcurl/curl_mime_data_cb.3 b/docs/libcurl/curl_mime_data_cb.3 index d3e05ffb46..fc2eac38b2 100644 --- a/docs/libcurl/curl_mime_data_cb.3 +++ b/docs/libcurl/curl_mime_data_cb.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, , et al. +.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, , et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -61,7 +61,7 @@ freeing. The read 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 \fInmemb\fP number +should be filled up with at most \fIsize\fP multiplied with \fInitems\fP number of bytes by your function. Your read function must then return the actual number of bytes that it stored