mirror of
https://github.com/restic/restic.git
synced 2025-02-07 06:59:15 +00:00
Fix loadBlob in filerestorer
This commit is contained in:
parent
7409225fa8
commit
34a33565c8
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ func (r *fileRestorer) loadBlob(rd io.Reader, blobID restic.ID, length int, buf
|
|||
buf = buf[:length]
|
||||
}
|
||||
|
||||
n, err := rd.Read(buf)
|
||||
n, err := io.ReadFull(rd, buf)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue