aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 6c901df0..5a9d708b 100644
--- a/driver.c
+++ b/driver.c
@@ -766,7 +766,7 @@ char *realname; /* real name of host */
skiptext:;
}
- /* write all the headers */
+ /* we may need to strip carriage returns */
if (ctl->stripcr)
{
char *sp, *tp;
@@ -846,7 +846,7 @@ char *realname; /* real name of host */
strcat(errmsg, "\n");
- /* ship out the error line */
+ /* we may need to strip carriage returns */
if (ctl->stripcr)
{
char *sp, *tp;
@@ -857,6 +857,7 @@ char *realname; /* real name of host */
*tp = '\0';
}
+ /* ship out the error line */
if (sinkfp)
{
if (ctl->mda)
@@ -916,6 +917,7 @@ char *realname; /* real name of host */
else
SockWrite(buf, 1, 1, sinkfp);
+ /* we may need to strip carriage returns */
if (ctl->stripcr)
{
char *sp, *tp;
@@ -926,6 +928,7 @@ char *realname; /* real name of host */
*tp = '\0';
}
+ /* ship the text line */
if (ctl->mda)
n = fwrite(buf, 1, strlen(buf), sinkfp);
else if (sinkfp)