aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-11-27 16:11:27 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-11-27 16:11:27 +0000
commit68e0b1c5ff21d11f3a293de6de7c32d61a93a662 (patch)
tree9851c7b2ccbc7fbbd13a383d795a2300de29b26c /imap.c
parentf750540a7bb3dd465cb562681a2606bd313469ad (diff)
downloadfetchmail-68e0b1c5ff21d11f3a293de6de7c32d61a93a662.tar.gz
fetchmail-68e0b1c5ff21d11f3a293de6de7c32d61a93a662.tar.bz2
fetchmail-68e0b1c5ff21d11f3a293de6de7c32d61a93a662.zip
Revise a check that didn't work on 64-bit SUSE Linux 10.0.
svn path=/trunk/; revision=4480
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index 1f62f696..ed5ca59d 100644
--- a/imap.c
+++ b/imap.c
@@ -1038,7 +1038,7 @@ static int imap_fetch_body(int sock, struct query *ctl, int number, int *lenp)
if ((cp = strchr(buf, '{'))) {
errno = 0;
*lenp = (int)strtol(cp + 1, (char **)NULL, 10);
- if (errno == ERANGE && (*lenp == LONG_MAX || *lenp == LONG_MIN))
+ if (errno == ERANGE || *lenp < 0)
*lenp = -1; /* length is too big/small for us to handle */
}
else