curl_easy_setopt: tweak the string copy wording

Reported-by: Yaobin Wen
Fixes #7632
Closes #7634
This commit is contained in:
Daniel Stenberg 2021-08-26 07:51:19 +02:00
parent 92f2a0a06b
commit 1a042be270
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -44,11 +44,11 @@ you must change them between the transfers. You can optionally reset all
options back to internal default with \fIcurl_easy_reset(3)\fP. options back to internal default with \fIcurl_easy_reset(3)\fP.
Strings passed to libcurl as 'char *' arguments, are copied by the library; Strings passed to libcurl as 'char *' arguments, are copied by the library;
thus the string storage associated to the pointer argument may be overwritten the string storage associated to the pointer argument may be discarded or
after \fIcurl_easy_setopt(3)\fP returns. The only exception to this rule is reused after \fIcurl_easy_setopt(3)\fP returns. The only exception to this
really \fICURLOPT_POSTFIELDS(3)\fP, but the alternative that copies the string rule is really \fICURLOPT_POSTFIELDS(3)\fP, but the alternative that copies
\fICURLOPT_COPYPOSTFIELDS(3)\fP has some usage characteristics you need to the string \fICURLOPT_COPYPOSTFIELDS(3)\fP has some usage characteristics you
read up on. This function does not accept input strings longer than need to read up on. This function does not accept input strings longer than
\fBCURL_MAX_INPUT_LENGTH\fP (8 MB). \fBCURL_MAX_INPUT_LENGTH\fP (8 MB).
The order in which the options are set does not matter. The order in which the options are set does not matter.