mirror of
https://github.com/octoleo/restic.git
synced 2024-11-16 18:15:20 +00:00
restore: Make sure buffer is large enough
This commit is contained in:
parent
c83e608cce
commit
50d066befb
@ -215,7 +215,7 @@ func (node Node) createFileAt(path string, repo Repository, idx *HardlinkIndex)
|
|||||||
}
|
}
|
||||||
|
|
||||||
buf = buf[:cap(buf)]
|
buf = buf[:cap(buf)]
|
||||||
if uint(len(buf)) < size {
|
if len(buf) < CiphertextLength(int(size)) {
|
||||||
buf = NewBlobBuffer(int(size))
|
buf = NewBlobBuffer(int(size))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user