aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-22 10:33:33 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-22 10:33:33 +0000
commit206f1285d31b58bb3317a42a52099df67ac790e7 (patch)
tree992c7ca9ca7e8c5ec11456d36cec8081d0bb05f7 /pop3.c
parent46f015be0597ded4531f7dbf014f5e5bfa93c2b7 (diff)
downloadfetchmail-206f1285d31b58bb3317a42a52099df67ac790e7.tar.gz
fetchmail-206f1285d31b58bb3317a42a52099df67ac790e7.tar.bz2
fetchmail-206f1285d31b58bb3317a42a52099df67ac790e7.zip
Blank skipping in UIDL code would count spaces from the wrong string.
svn path=/trunk/; revision=4161
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c3
1 files changed, 2 insertions, 1 deletions
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)) {