1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

CURLOPT_MAIL_RCPT is *not* a string so we must not try to printf() it

This commit is contained in:
Daniel Stenberg 2010-02-12 22:19:48 +00:00
parent 2138ee7628
commit dc6adb54fb

View File

@ -4101,7 +4101,7 @@ parse_filename(char *ptr, int len)
return NULL; return NULL;
strncpy(copy, ptr, len); strncpy(copy, ptr, len);
copy[len] = 0; copy[len] = 0;
p = copy; p = copy;
if (*p == '\'' || *p == '"') { if (*p == '\'' || *p == '"') {
/* store the starting quote */ /* 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); my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from);
if(config->mail_rcpt) 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 */ /* curl 7.20.x */
if(config->ftp_pret) 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_HEADERFUNCTION, header_callback);
my_setopt(curl, CURLOPT_HEADERDATA, &outs); my_setopt(curl, CURLOPT_HEADERDATA, &outs);
} }
retry_numretries = config->req_retry; retry_numretries = config->req_retry;
retrystart = cutil_tvnow(); retrystart = cutil_tvnow();