]> code.citadel.org Git - citadel.git/commitdiff
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>
Wed, 22 Dec 2010 11:59:41 +0000 (12:59 +0100)
citadel/modules/smtp/serv_smtpclient.c

index cafe1ed03ee90b2fd96eb6ea3ff19a51c0a5e63a..0626ffdbd7b5ee1a06c42cbc157162b615d2f8f5 100644 (file)
@@ -176,7 +176,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;