According to Wikipedia:

"The end of an archive is marked by at least two consecutive zero-filled records"

The attached patch fixes this.

-- tsbg