diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-08-24 21:06:26 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-08-24 21:06:26 +0200 |
commit | 20168b948abc4b6420d811f7a9526211e102f1f3 (patch) | |
tree | e5ce2f8d2ab239005413ee5662ecd3a0458a693e /tests | |
parent | edfaf5a25becd00e346d21bc6512de68056139f6 (diff) | |
download | curl-20168b948abc4b6420d811f7a9526211e102f1f3.tar.gz |
lib1522: fix curl_easy_setopt argument type
CURLOPT_POSTFIELDSIZE is a long option.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib1522.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib1522.c b/tests/libtest/lib1522.c index 5a47a359c..2de955284 100644 --- a/tests/libtest/lib1522.c +++ b/tests/libtest/lib1522.c @@ -54,7 +54,7 @@ int test(char *URL) curl_easy_setopt(pCurl, CURLOPT_SOCKOPTFUNCTION, sockopt_callback); curl_easy_setopt(pCurl, CURLOPT_URL, URL); curl_easy_setopt(pCurl, CURLOPT_POSTFIELDS, g_Data); - curl_easy_setopt(pCurl, CURLOPT_POSTFIELDSIZE, sizeof(g_Data)); + curl_easy_setopt(pCurl, CURLOPT_POSTFIELDSIZE, (long)sizeof(g_Data)); /* Remove "Expect: 100-continue" */ pHeaderList = curl_slist_append(pHeaderList, "Expect:"); |