1
0
Fork 1
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:
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
}