1
0
Fork 0
forked from mirrors/tar-split

main.go: found the padding after EOF ...

This commit is contained in:
Vincent Batts 2015-02-20 14:53:05 -05:00
parent c9b618ab48
commit e8456b0d49

View file

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