forked from lix-project/lix
Tweak
This commit is contained in:
parent
f87e286e82
commit
dce8af59a6
|
@ -44,7 +44,7 @@ static void dumpContents(const Path & path, size_t size,
|
|||
size_t left = size;
|
||||
|
||||
while (left > 0) {
|
||||
size_t n = left > buf.size() ? buf.size() : left;
|
||||
auto n = std::min(left, buf.size());
|
||||
readFull(fd.get(), buf.data(), n);
|
||||
left -= n;
|
||||
sink(buf.data(), n);
|
||||
|
|
Loading…
Reference in a new issue