]> granicus.if.org Git - curl/commitdiff
CURLOPT_MAIL_RCPT is *not* a string so we must not try to printf() it
authorDaniel Stenberg <daniel@haxx.se>
Fri, 12 Feb 2010 22:19:48 +0000 (22:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Feb 2010 22:19:48 +0000 (22:19 +0000)
src/main.c

index bcf45625cd155b3d86d5a57078fc0bcf9b9e3e4c..3d097fd1d8c5dd7e92fee5591c0cb9b595b98081 100644 (file)
@@ -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();