From: Vasily Kolobkov <> Date: Thu, 9 Jun 2016 12:30:30 +0000 (+0200) Subject: Remove extra space from 'From' line when writing to mbox X-Git-Tag: mmh-0.3~25 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=900d7ecb383b331d5fc17bc12c3463a2157cdcd9;p=mmh Remove extra space from 'From' line when writing to mbox --- diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 45451f8..e105884 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -131,7 +131,7 @@ mbox_copy(int to, int from) fp = strchr(ep + 1, '\n'); tp = dctime(dlocaltimenow()); snprintf(buffer, sizeof(buffer), - "From %.*s %s", + "From %.*s %s", (int)(fp-ep), ep, tp); } else if (strncmp(buffer, "X-Envelope-From:", 16)==0) { @@ -158,7 +158,7 @@ mbox_copy(int to, int from) ep = "nobody@nowhere"; tp = dctime(dlocaltimenow()); snprintf(buffer, sizeof(buffer), - "From %s %s%s", ep, tp, + "From %s %s%s", ep, tp, tmpbuffer); } }