On Tue, 2 September 2008 09:44:19 -0700, Jared Hulbert wrote:
Can't you just include the final magic into the last block, thereby
making the size a clean multiple of 4k? It looks as if you have some
padding before the magic anyway. So you just have to make sure the
padding is at least 4 bytes and write the magic to the end of it. Apart
from solving this bug, it should also save you some space. ;)
Jörn
--
Invincibility is in oneself, vulnerability is in the opponent.
-- Sun Tzu
--