mirror of
https://github.com/curl/curl.git
synced 2026-07-24 02:47:17 +03:00
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
This commit is contained in:
parent
b8abeab6d3
commit
e664cd5826
28 changed files with 63 additions and 61 deletions
|
|
@ -26,7 +26,7 @@ int main(void)
|
|||
|
||||
/* if we don't provide POSTFIELDSIZE, libcurl will strlen() by
|
||||
itself */
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(postthis));
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue