2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-06 19:10:49 +00:00

Fix loadBlob in filerestorer

This commit is contained in:
Alexander Weiss 2021-01-01 08:06:04 +01:00
parent 7409225fa8
commit 34a33565c8

View File

@ -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
}