diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-09-03 17:48:15 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-09-03 17:51:18 +0100 |
commit | 7e36b30da8ef1b69e7932e8a40c7585d8a711d71 (patch) | |
tree | cf405009b18bfe1106ba98bf712ab4d3f2b49174 /tests/data/test1404 | |
parent | 437475901dddacdac2db7449b1a51ee078b1e48f (diff) |
mime: fix signed/unsigned conversions.
Use and generate CURL_ZERO_TERMINATED in curl tool and tests.
Diffstat (limited to 'tests/data/test1404')
-rw-r--r-- | tests/data/test1404 | 6 |
1 files changed, 3 insertions, 3 deletions
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); |