]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/serv_smtpclient.c
Fix off by one here too; else we will send two '<' in the MAIL FROM command.
[citadel.git] / 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;