From 800617fac8bfa9417224f83f639ecf6028a7a208 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Fri, 8 Mar 2024 08:45:10 +0100 Subject: [PATCH] lib1598: fix `CURLOPT_POSTFIELDSIZE` usage It requires a `long` argument. Closes https://github.com/curl/curl/pull/13085 --- tests/libtest/lib1598.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3