forked from lix-project/lix
* Doh! Doh! Doh!
This commit is contained in:
parent
354d58b3d7
commit
c25f688e23
|
@ -81,7 +81,7 @@ static void dumpContents(const Path & path, unsigned int size,
|
||||||
unsigned char buf[65536];
|
unsigned char buf[65536];
|
||||||
unsigned int left = size;
|
unsigned int left = size;
|
||||||
|
|
||||||
while (left >= 0) {
|
while (left > 0) {
|
||||||
size_t n = left > sizeof(buf) ? sizeof(buf) : left;
|
size_t n = left > sizeof(buf) ? sizeof(buf) : left;
|
||||||
readFull(fd, buf, n);
|
readFull(fd, buf, n);
|
||||||
left -= n;
|
left -= n;
|
||||||
|
|
Loading…
Reference in a new issue