mirror of
https://github.com/curl/curl.git
synced 2026-06-18 11:25:39 +03:00
curl_formdata: fix to pass long where missing, document CURLFORM_NAMELENGTH
- lib650: pass `long` to `CURLFORM_NAMELENGTH` in test. Spotted by Copilot. https://github.com/curl/curl/pull/22011#discussion_r3412407235 Follow-up to3620e569b3- lib650: drop an interim variable, and interim casts. Follow-up to60776a0515#2747 - curl_formdata.md: document `CURLFORM_NAMELENGTH` on man page. - curl_formdata.md: pass `long` to `CURLFORM_BUFFERLENGTH` on man page. - formdata: pass `long` to `CURLFORM_CONTENTSLENGTH` in comment. Closes #22017
This commit is contained in:
parent
0dae3b2690
commit
adb606eae7
3 changed files with 10 additions and 7 deletions
|
|
@ -184,7 +184,7 @@ static void free_formlist(struct FormInfo *ptr)
|
|||
*
|
||||
* name/value pair where only the content pointer is remembered:
|
||||
* curl_formadd(&post, &last, CURLFORM_COPYNAME, "name",
|
||||
* CURLFORM_PTRCONTENTS, ptr, CURLFORM_CONTENTSLENGTH, 10,
|
||||
* CURLFORM_PTRCONTENTS, ptr, CURLFORM_CONTENTSLENGTH, 10L,
|
||||
* CURLFORM_END);
|
||||
* (if CURLFORM_CONTENTSLENGTH is missing strlen () is used)
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue