summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-31 15:38:43 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-31 15:38:43 +0000
commitc25f688e237cbd3329b2479202ad7a6a5e438b8a (patch)
tree2c1fe61d1fa0432b46415ad90242b55b464f33f6
parent354d58b3d71d8b3723ff3cb6e8311469e9548417 (diff)
downloadguix-c25f688e237cbd3329b2479202ad7a6a5e438b8a.tar.gz
* Doh! Doh! Doh!
-rw-r--r--src/libutil/archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc
index 27b1726ad0..25deccc09c 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;