From 900d7ecb383b331d5fc17bc12c3463a2157cdcd9 Mon Sep 17 00:00:00 2001 From: Vasily Kolobkov <> Date: Thu, 9 Jun 2016 14:30:30 +0200 Subject: [PATCH] Remove extra space from 'From' line when writing to mbox --- uip/dropsbr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 1.7.10.4