aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-11 12:58:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-11 12:58:03 +0000
commitcc413597e0a7954f090fc32851aff958b9d41a6d (patch)
treea68a1b1898c0eccc129d72503db90763fcda2a49
parente7e7f95e4b575da2d83339dd5746d0f1863b7671 (diff)
downloadfetchmail-cc413597e0a7954f090fc32851aff958b9d41a6d.tar.gz
fetchmail-cc413597e0a7954f090fc32851aff958b9d41a6d.tar.bz2
fetchmail-cc413597e0a7954f090fc32851aff958b9d41a6d.zip
Fix for unusual octet count format.
svn path=/trunk/; revision=529
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index 01a14e51..2b771914 100644
--- a/pop3.c
+++ b/pop3.c
@@ -236,9 +236,9 @@ static int pop3_fetch(FILE *sockfp, int number, int *lenp)
*lenp = 0;
else
{
- while (isdigit(*--cp))
+ while (--cp > buf && isdigit(*cp))
continue;
- *lenp = atoi(++cp);
+ *lenp = atoi(cp);
}
return(0);
}