From cc413597e0a7954f090fc32851aff958b9d41a6d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 11 Nov 1996 12:58:03 +0000 Subject: Fix for unusual octet count format. svn path=/trunk/; revision=529 --- pop3.c | 4 ++-- 1 file 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); } -- cgit v1.2.3