]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_setopt: tweak the string copy wording
authorDaniel Stenberg <daniel@haxx.se>
Thu, 26 Aug 2021 05:51:19 +0000 (07:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Aug 2021 07:18:42 +0000 (09:18 +0200)
Reported-by: Yaobin Wen
Fixes #7632
Closes #7634

docs/libcurl/curl_easy_setopt.3

index cd1bf1c8548ec4786244659f52db815873c4658f..b83f5b6356aee117ceb444e8bbb40f828f67a128 100644 (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.
 
 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.