From 3dc68478eb7e56000042ea5554b570f12f8e3f80 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2004 04:40:59 +0000 Subject: [PATCH] don't compare unsigned w/ <= 0. --- lib/bind/resolv/res_send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bind/resolv/res_send.c b/lib/bind/resolv/res_send.c index bfb55c509a..6daed05578 100644 --- a/lib/bind/resolv/res_send.c +++ b/lib/bind/resolv/res_send.c @@ -70,7 +70,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; -static const char rcsid[] = "$Id: res_send.c,v 1.9.18.1 2004/04/12 07:13:50 marka Exp $"; +static const char rcsid[] = "$Id: res_send.c,v 1.9.18.2 2004/06/03 04:40:59 marka Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -656,7 +656,7 @@ send_vc(res_state statp, len = INT16SZ; while ((n = read(statp->_vcsock, (char *)cp, (int)len)) > 0) { cp += n; - if ((len -= n) <= 0) + if ((len -= n) == 0) break; } if (n <= 0) {