aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-28 17:17:42 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-28 17:17:42 +0000
commitf4f9da602945abd933e7796546eee4525f5e4c56 (patch)
tree33ea1eb2a7573a2eea3083160f92fefaff7eb8d4
parent8ef9fbf6b486ff63066fc05eb47cab974ffceb3b (diff)
downloadfetchmail-f4f9da602945abd933e7796546eee4525f5e4c56.tar.gz
fetchmail-f4f9da602945abd933e7796546eee4525f5e4c56.tar.bz2
fetchmail-f4f9da602945abd933e7796546eee4525f5e4c56.zip
Correct length calculation.
svn path=/trunk/; revision=835
-rw-r--r--NEWS7
-rw-r--r--pop3.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 35e97d42..938dd72d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,13 @@
Release Notes:
------------------------------------------------------------------------------
+fetchmail-3.3 ()
+
+features --
+
+* Correction to length-extraction code for servers that return (nnn octets).
+
+------------------------------------------------------------------------------
fetchmail-3.2 (Mon Jan 27 02:51:10 EST 1997)
features --
diff --git a/pop3.c b/pop3.c
index 17a6306a..72232260 100644
--- a/pop3.c
+++ b/pop3.c
@@ -245,7 +245,7 @@ static int pop3_fetch(FILE *sockfp, struct query *ctl, int number, int *lenp)
{
while (--cp > buf && isdigit(*cp))
continue;
- *lenp = atoi(cp);
+ *lenp = atoi(++cp);
}
return(0);
}