From c3d362f9c8a1dea65918ec84e72de1555992adc0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 24 Oct 1996 13:36:02 +0000 Subject: Paul Traina's crash fix. svn path=/trunk/; revision=373 --- socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 9ea13864..1e209cac 100644 --- a/socket.c +++ b/socket.c @@ -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) -- cgit v1.2.3