summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-02-12 22:19:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2010-02-12 22:19:48 +0000
commitdc6adb54fbf1c3678e71f0ce281ba37e0d7e2b83 (patch)
tree1887143bc8ec1ccfdf430a892a41c89b980b671d /src
parent2138ee76281f0feeb2372a51015de9a91a377919 (diff)
downloadcurl-dc6adb54fbf1c3678e71f0ce281ba37e0d7e2b83.tar.gz
CURLOPT_MAIL_RCPT is *not* a string so we must not try to printf() it
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index bcf45625c..3d097fd1d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4101,7 +4101,7 @@ parse_filename(char *ptr, int len)
return NULL;
strncpy(copy, ptr, len);
copy[len] = 0;
-
+
p = copy;
if (*p == '\'' || *p == '"') {
/* store the starting quote */
@@ -5159,7 +5159,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from);
if(config->mail_rcpt)
- my_setopt_str(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt);
+ my_setopt(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt);
/* curl 7.20.x */
if(config->ftp_pret)
@@ -5170,7 +5170,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
my_setopt(curl, CURLOPT_HEADERFUNCTION, header_callback);
my_setopt(curl, CURLOPT_HEADERDATA, &outs);
}
-
+
retry_numretries = config->req_retry;
retrystart = cutil_tvnow();