lib650.c use CURL_CSTRLEN

This commit is contained in:
Viktor Szakats 2026-07-30 10:47:51 +02:00
parent 6203ac180b
commit c6d2cb99c6
No known key found for this signature in database

View file

@ -92,7 +92,7 @@ static CURLcode test_lib650(const char *URL)
formrc = curl_formadd(&formpost,
&lastptr,
CURLFORM_PTRNAME, testname,
CURLFORM_NAMELENGTH, (long)(sizeof(testname) - 2),
CURLFORM_NAMELENGTH, (long)CURL_CSTRLEN(testname) - 1,
CURLFORM_ARRAY, formarray,
CURLFORM_FILENAME, "remotefile.txt",
CURLFORM_END);