diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-08-26 07:51:19 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-08-26 09:18:42 +0200 |
commit | 1a042be2703bc14037399ea21e23c69b0808c764 (patch) | |
tree | 0ee7e69f49a09b5477ff10155b53233b7efa39d8 /docs | |
parent | 92f2a0a06b699c572d2f6919bcffd630e8a2ead9 (diff) | |
download | curl-1a042be2703bc14037399ea21e23c69b0808c764.tar.gz |
curl_easy_setopt: tweak the string copy wording
Reported-by: Yaobin Wen
Fixes #7632
Closes #7634
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libcurl/curl_easy_setopt.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3 index cd1bf1c85..b83f5b635 100644 --- a/docs/libcurl/curl_easy_setopt.3 +++ b/docs/libcurl/curl_easy_setopt.3 @@ -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. Strings passed to libcurl as 'char *' arguments, are copied by the library; -thus the string storage associated to the pointer argument may be overwritten -after \fIcurl_easy_setopt(3)\fP returns. The only exception to this rule is -really \fICURLOPT_POSTFIELDS(3)\fP, but the alternative that copies the string -\fICURLOPT_COPYPOSTFIELDS(3)\fP has some usage characteristics you need to -read up on. This function does not accept input strings longer than +the string storage associated to the pointer argument may be discarded or +reused after \fIcurl_easy_setopt(3)\fP returns. The only exception to this +rule is really \fICURLOPT_POSTFIELDS(3)\fP, but the alternative that copies +the string \fICURLOPT_COPYPOSTFIELDS(3)\fP has some usage characteristics you +need to read up on. This function does not accept input strings longer than \fBCURL_MAX_INPUT_LENGTH\fP (8 MB). The order in which the options are set does not matter. |