aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-17 05:41:06 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-17 05:41:06 +0000
commit194f6a69e8db6392c1c16e228e954312a1b9f347 (patch)
tree3f3800f93a0f381001d64aa74716fbf1a9272163
parent3ae9df13aa1033bcc695515fd3ec1c477e023241 (diff)
downloadfetchmail-194f6a69e8db6392c1c16e228e954312a1b9f347.tar.gz
fetchmail-194f6a69e8db6392c1c16e228e954312a1b9f347.tar.bz2
fetchmail-194f6a69e8db6392c1c16e228e954312a1b9f347.zip
Fix message-delimiter logic.
svn path=/trunk/; revision=784
-rw-r--r--driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 2ab5f6f9..4f934c38 100644
--- a/driver.c
+++ b/driver.c
@@ -417,8 +417,7 @@ char *realname; /* real name of host */
if (buf[0] == '\r' && buf[1] == '\n')
inheaders = 0;
if (delimited && *bufp == '.') {
- bufp++;
- if (*bufp == 0)
+ if (bufp[1] == '\r' && bufp[2] == '\n')
break; /* end of message */
}