aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-mime.c
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2017-09-04 13:58:10 +0000
committerViktor Szakats <vszakats@users.noreply.github.com>2017-09-04 13:58:10 +0000
commit841a09ea19f9b6ec4f18d761578cef44ada2810b (patch)
tree07e368744fa5e1bece87e41612a22806da6d1c03 /docs/examples/smtp-mime.c
parent202c1cc22fc3b83dff93b7181f8eb3cc1a8e4a3f (diff)
mime: use CURL_ZERO_TERMINATED in examples
and some minor whitespace fixes
Diffstat (limited to 'docs/examples/smtp-mime.c')
-rw-r--r--docs/examples/smtp-mime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/smtp-mime.c b/docs/examples/smtp-mime.c
index 2895dbc31..c611ac437 100644
--- a/docs/examples/smtp-mime.c
+++ b/docs/examples/smtp-mime.c
@@ -113,12 +113,12 @@ int main(void)
/* HTML message. */
part = curl_mime_addpart(alt);
- curl_mime_data(part, inline_html, -1);
+ curl_mime_data(part, inline_html, CURL_ZERO_TERMINATED);
curl_mime_type(part, "text/html");
/* Text message. */
part = curl_mime_addpart(alt);
- curl_mime_data(part, inline_text, -1);
+ curl_mime_data(part, inline_text, CURL_ZERO_TERMINATED);
/* Create the inline part. */
part = curl_mime_addpart(mime);