aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}