mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
* Doh! Doh! Doh!
This commit is contained in:
parent
354d58b3d7
commit
c25f688e23
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue