mirror of
https://github.com/restic/restic.git
synced 2025-01-03 13:45:20 +00:00
pack: Fix number of bytes
This commit is contained in:
parent
59a6fadf78
commit
91cfb3fb58
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ func (p *Packer) Finalize() (bytesWritten uint, err error) {
|
||||||
return bytesWritten + bytesHeader, err
|
return bytesWritten + bytesHeader, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bytesWritten += bytesHeader
|
||||||
|
|
||||||
// finalize encrypted header
|
// finalize encrypted header
|
||||||
err = wr.Close()
|
err = wr.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue