1
0
Fork 0
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:
Alexander Neumann 2015-04-30 00:41:11 +02:00
parent 59a6fadf78
commit 91cfb3fb58

View file

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