]> Pileus Git - ~andy/fetchmail/commitdiff
Correct length calculation.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 28 Jan 1997 17:17:42 +0000 (17:17 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 28 Jan 1997 17:17:42 +0000 (17:17 -0000)
svn path=/trunk/; revision=835

NEWS
pop3.c

diff --git a/NEWS b/NEWS
index 35e97d424bdd0a06d2a9d40f7e170de8054c5881..938dd72d162058a905ba8e9b4278c493a12e20f7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,12 @@
                        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)
 
diff --git a/pop3.c b/pop3.c
index 17a6306a21e9ee888372fe5fe60a9838e264e89c..722322606ff1939b246241e8829dcfc3896779f7 100644 (file)
--- 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);
 }