mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Fix bug in TeeSource
We use this to simplify `LocalStore::addToStoreFromDump`. Also, hope I fixed build error with old clang (used in Darwin CI).
This commit is contained in:
parent
5602637d9e
commit
3dcca18c30
2 changed files with 5 additions and 11 deletions
|
@ -189,7 +189,7 @@ struct TeeSource : Source
|
|||
size_t read(unsigned char * data, size_t len)
|
||||
{
|
||||
size_t n = orig.read(data, len);
|
||||
sink(data, len);
|
||||
sink(data, n);
|
||||
return n;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue