diff options
Diffstat (limited to 'docs/examples/postit2.c')
-rw-r--r-- | docs/examples/postit2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c index f4c0a8f32..ca5c77dc4 100644 --- a/docs/examples/postit2.c +++ b/docs/examples/postit2.c @@ -61,18 +61,18 @@ int main(int argc, char *argv[]) /* Fill in the file upload field */ field = curl_mime_addpart(form); - curl_mime_name(field, "sendfile", -1); + curl_mime_name(field, "sendfile", CURL_ZERO_TERMINATED); curl_mime_filedata(field, "postit2.c"); /* Fill in the filename field */ field = curl_mime_addpart(form); - curl_mime_name(field, "filename", -1); - curl_mime_data(field, "postit2.c", -1); + curl_mime_name(field, "filename", CURL_ZERO_TERMINATED); + curl_mime_data(field, "postit2.c", CURL_ZERO_TERMINATED); /* Fill in the submit field too, even if this is rarely needed */ field = curl_mime_addpart(form); - curl_mime_name(field, "submit", -1); - curl_mime_data(field, "send", -1); + curl_mime_name(field, "submit", CURL_ZERO_TERMINATED); + curl_mime_data(field, "send", CURL_ZERO_TERMINATED); /* initialize custom header list (stating that Expect: 100-continue is not wanted */ |