mirror of
https://github.com/restic/restic.git
synced 2025-12-03 21:21:47 +00:00
Fix loadBlob in filerestorer
This commit is contained in:
@@ -319,7 +319,7 @@ func (r *fileRestorer) loadBlob(rd io.Reader, blobID restic.ID, length int, buf
|
|||||||
buf = buf[:length]
|
buf = buf[:length]
|
||||||
}
|
}
|
||||||
|
|
||||||
n, err := rd.Read(buf)
|
n, err := io.ReadFull(rd, buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user