aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-22 01:08:29 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-22 01:08:29 +0100
commitee56fdb6910f6bf215eecede9e2e9bfc83cb5f29 (patch)
treebfdbf1f3f2f5cd9f051f6b8d0b2469c51b2660ef /include
parentfa9482ab0907dfacd0fb619add2dbf41de2d8c9c (diff)
form/mime: field names are not allowed to contain zero-valued bytes.
Also suppress length argument of curl_mime_name() (names are always zero-terminated).
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 1eb82f5c6..8b153fef9 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -2009,8 +2009,7 @@ CURL_EXTERN curl_mimepart *curl_mime_addpart(curl_mime *mime);
*
* Set mime/form part name.
*/
-CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part,
- const char *name, size_t namesize);
+CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part, const char *name);
/*
* NAME curl_mime_filename()