diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-05-22 21:20:07 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-05-22 21:20:07 +0000 |
commit | e664cd5826d43930fcc5b5dbaedbec94af33184b (patch) | |
tree | 7cca8fe1a4d1649d4d40ed7dcd4fc64486dedf00 /docs/examples/simplepost.c | |
parent | b8abeab6d3729ce4c9cc3eccb69e2bd3be2b58d3 (diff) | |
download | curl-e664cd5826d43930fcc5b5dbaedbec94af33184b.tar.gz |
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
Diffstat (limited to 'docs/examples/simplepost.c')
-rw-r--r-- | docs/examples/simplepost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/simplepost.c b/docs/examples/simplepost.c index 9bab83b7d..4aed4f999 100644 --- a/docs/examples/simplepost.c +++ b/docs/examples/simplepost.c @@ -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); |