From b450ad76ff1debfe2aa709e3a784f92cb382c502 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 7 Aug 2009 10:04:57 +0200 Subject: safe_write: fix unsigned vs. signed comparison Michael --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index 22dfadf..60ec9e8 100644 --- a/src/network.c +++ b/src/network.c @@ -56,7 +56,7 @@ safe_write (int fd, const char *buffer, size_t count) return -errno; } - if (len == bytestosend) + if ((size_t)len == bytestosend) break; buffer += len; -- cgit v1.2.3