diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-11-27 16:11:27 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-11-27 16:11:27 +0000 |
commit | 68e0b1c5ff21d11f3a293de6de7c32d61a93a662 (patch) | |
tree | 9851c7b2ccbc7fbbd13a383d795a2300de29b26c /imap.c | |
parent | f750540a7bb3dd465cb562681a2606bd313469ad (diff) | |
download | fetchmail-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |