1
0
Fork 0

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
1 changed files with 5 additions and 0 deletions

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
}