From: Wilfried Goesgens Date: Wed, 22 Dec 2010 11:59:41 +0000 (+0100) Subject: Fix off by one here too; else we will send two '<' in the MAIL FROM command. X-Git-Tag: v8.11~986 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=12fbb8373416234ee302020c03a117452d3a0ac5;p=citadel.git Fix off by one here too; else we will send two '<' in the MAIL FROM command. --- diff --git a/citadel/modules/smtp/serv_smtpclient.c b/citadel/modules/smtp/serv_smtpclient.c index c3f33fecd..7be77a414 100644 --- a/citadel/modules/smtp/serv_smtpclient.c +++ b/citadel/modules/smtp/serv_smtpclient.c @@ -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;