lib1598: fix CURLOPT_POSTFIELDSIZE usage

It requires a `long` argument.

Closes https://github.com/curl/curl/pull/13085
This commit is contained in:
Marcel Raad 2024-03-08 08:45:10 +01:00 committed by Daniel Stenberg
parent 71681376d8
commit 800617fac8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);