From 7e36b30da8ef1b69e7932e8a40c7585d8a711d71 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sun, 3 Sep 2017 17:48:15 +0100 Subject: mime: fix signed/unsigned conversions. Use and generate CURL_ZERO_TERMINATED in curl tool and tests. --- tests/data/test1404 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/data') diff --git a/tests/data/test1404 b/tests/data/test1404 index 60ed58a16..a3ec66ef7 100644 --- a/tests/data/test1404 +++ b/tests/data/test1404 @@ -123,8 +123,8 @@ int main(int argc, char *argv[]) curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); mime1 = curl_mime_init(hnd); part1 = curl_mime_addpart(mime1); - curl_mime_data(part1, "value", -1); - curl_mime_name(part1, "name", -1); + curl_mime_data(part1, "value", CURL_ZERO_TERMINATED); + curl_mime_name(part1, "name", CURL_ZERO_TERMINATED); part1 = curl_mime_addpart(mime1); mime2 = curl_mime_init(hnd); part2 = curl_mime_addpart(mime2); @@ -138,7 +138,7 @@ int main(int argc, char *argv[]) slist1 = NULL; curl_mime_subparts(part1, mime2); mime2 = NULL; - curl_mime_name(part1, "file", -1); + curl_mime_name(part1, "file", CURL_ZERO_TERMINATED); curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1); curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); -- cgit v1.2.3