diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-24 13:36:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-24 13:36:02 +0000 |
commit | c3d362f9c8a1dea65918ec84e72de1555992adc0 (patch) | |
tree | eaec378b50e10c739b447a574e9796a39af4b4ab /socket.c | |
parent | f1c7b68c3c5edc45d51478f4ca681d529b2d8e16 (diff) | |
download | fetchmail-c3d362f9c8a1dea65918ec84e72de1555992adc0.tar.gz fetchmail-c3d362f9c8a1dea65918ec84e72de1555992adc0.tar.bz2 fetchmail-c3d362f9c8a1dea65918ec84e72de1555992adc0.zip |
Paul Traina's crash fix.
svn path=/trunk/; revision=373
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -151,7 +151,7 @@ int len; static char sbuf [INTERNAL_BUFSIZE]; static char *bp; - if (sbuflen == 0) { + if (sbuflen <= 0) { /* buffer is empty; refresh. */ if ((sbuflen = read(socket,sbuf,INTERNAL_BUFSIZE)) < 0) { if (errno = EINTR) |