aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/simplepost.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/simplepost.c')
-rw-r--r--docs/examples/simplepost.c2
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);