From: Marcel Raad Date: Fri, 8 Mar 2024 07:45:10 +0000 (+0100) Subject: lib1598: fix `CURLOPT_POSTFIELDSIZE` usage X-Git-Tag: curl-8_7_0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=800617fac8bfa9417224f83f639ecf6028a7a208;p=thirdparty%2Fcurl.git lib1598: fix `CURLOPT_POSTFIELDSIZE` usage It requires a `long` argument. Closes https://github.com/curl/curl/pull/13085 --- diff --git a/tests/libtest/lib1598.c b/tests/libtest/lib1598.c index 63cdfcfb64..c099116a86 100644 --- a/tests/libtest/lib1598.c +++ b/tests/libtest/lib1598.c @@ -87,7 +87,7 @@ int test(char *URL) test_setopt(curl, CURLOPT_URL, URL); test_setopt(curl, CURLOPT_HTTPHEADER, hhl); - test_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(post_data)); + test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(post_data)); test_setopt(curl, CURLOPT_POSTFIELDS, post_data); test_setopt(curl, CURLOPT_TRAILERFUNCTION, trailers_callback); test_setopt(curl, CURLOPT_TRAILERDATA, NULL);