square/tape — pull request #50 by casidiablo (2014-05-28 01:19:07+00:00)
Title: fixed the count of bytes to transfer to the EOF on file expansion

The idea of this snippet is to make the buffer contiguous again. But `count` should not be `endOfLastElement - Element.HEADER_LENGTH` but `endOfLastElement - HEADER_LENGTH`.

I guess this was not detected before because it does not affect the behavior of the library, but still this is the correct way to do it.