about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-31T15·38+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-31T15·38+0000
commitc25f688e237cbd3329b2479202ad7a6a5e438b8a (patch)
tree2c1fe61d1fa0432b46415ad90242b55b464f33f6 /src
parent354d58b3d71d8b3723ff3cb6e8311469e9548417 (diff)
* Doh! Doh! Doh!
Diffstat (limited to 'src')
-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 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;