aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-17 21:31:35 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-17 21:31:35 +0000
commit9d2e7f97454cd759c4c70a554c918caccc0b34a9 (patch)
tree81771de668fa9055d848f9a02c813aaf6b47a847 /smtp.c
parent33c898e6691726979bdf6e46b7f389e1ca13622d (diff)
downloadfetchmail-9d2e7f97454cd759c4c70a554c918caccc0b34a9.tar.gz
fetchmail-9d2e7f97454cd759c4c70a554c918caccc0b34a9.tar.bz2
fetchmail-9d2e7f97454cd759c4c70a554c918caccc0b34a9.zip
Clean up some extra trailing LFs.
svn path=/trunk/; revision=652
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/smtp.c b/smtp.c
index 877e2e5c..733f7050 100644
--- a/smtp.c
+++ b/smtp.c
@@ -101,6 +101,10 @@ int SMTP_ok(FILE *sockfp)
{
int n = strlen(ip);
+ if (buf[strlen(buf)-1] == '\n')
+ buf[strlen(buf)-1] = '\0';
+ if (buf[strlen(buf)-1] == '\r')
+ buf[strlen(buf)-1] = '\r';
if (n < 4)
return SM_ERROR;
buf[n] = '\0';