* Doh! Doh! Doh!

This commit is contained in:
Eelco Dolstra 2006-08-31 15:38:43 +00:00
parent 354d58b3d7
commit c25f688e23
1 changed files with 1 additions and 1 deletions

View File

@ -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;