From 206f1285d31b58bb3317a42a52099df67ac790e7 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 22 Jul 2005 10:33:33 +0000 Subject: Blank skipping in UIDL code would count spaces from the wrong string. svn path=/trunk/; revision=4161 --- pop3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 4898e1e9..b9b67507 100644 --- a/pop3.c +++ b/pop3.c @@ -651,7 +651,8 @@ static int parseuid(const char *buf, unsigned long *gotnum, char *id, size_t ids char *j; /* skip leading blanks ourselves */ - i = buf + strspn(i, POSIX_space); + i = buf; + i += strspn(i, POSIX_space); errno = 0; *gotnum = strtoul(i, &j, 10); if (j == i || !*j || errno || NULL == strchr(POSIX_space, *j)) { -- cgit v1.2.3