Fix off by one here too; else we will send two '<' in the MAIL FROM command.
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 22 Dec 2010 11:59:41 +0000 (12:59 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 11:15:51 +0000 (11:15 +0000)
citadel/modules/smtp/serv_smtpclient.c

index c3f33fecdee3f20f0cf325b1eca4f324dd2ccfcd..7be77a4142f723315d1ed019f3782baa4ec02fcf 100644 (file)
@@ -177,7 +177,7 @@ void smtp_try(const char *key, const char *addr, int *status,
                                }
                                if ( (lp>=0) && (rp>lp) ) {
                                        mailfrom[rp] = 0;
-                                       strcpy(mailfrom, &mailfrom[lp]);
+                                       strcpy(mailfrom, &mailfrom[lp + 1]);
                                }
        
                                scan_done = 1;