From c25f688e237cbd3329b2479202ad7a6a5e438b8a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 31 Aug 2006 15:38:43 +0000 Subject: * Doh! Doh! Doh! --- src/libutil/archive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index 27b1726ad046..25deccc09c15 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -81,7 +81,7 @@ static void dumpContents(const Path & path, unsigned int size, unsigned char buf[65536]; unsigned int left = size; - while (left >= 0) { + while (left > 0) { size_t n = left > sizeof(buf) ? sizeof(buf) : left; readFull(fd, buf, n); left -= n; -- cgit 1.4.1