mirror of
https://github.com/vbatts/tar-split.git
synced 2024-11-26 01:35:39 +00:00
main.go: found the padding after EOF ...
This commit is contained in:
parent
c9b618ab48
commit
e8456b0d49
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -43,6 +43,11 @@ func main() {
|
|||
if err != io.EOF {
|
||||
log.Println(err)
|
||||
}
|
||||
// even when an EOF is reached, there is often 1024 null bytes on
|
||||
// the end of an archive. Collect them too.
|
||||
post := tr.RawBytes()
|
||||
output.Write(post)
|
||||
sum += int64(len(post))
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue