Fix block merging in kill_block()
commit36777dda0207bff34bb854d27e03f3b6cd658b2c
authorPetr Tesarik <petr@tesarici.cz>
Mon, 22 Oct 2012 22:00:03 +0000 (23 00:00 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Mon, 22 Oct 2012 22:00:03 +0000 (23 00:00 +0200)
tree7de2a3c3168dc8eb68a7e32819b198fa28a57424
parent74a7b71b9c59ffe70fc244f70cee96f35abe2349
Fix block merging in kill_block()

If we try to merge a freshly virtualized block, the flags may include
bits that are meaningless for a virtual block. Keep only HED_BLOCK_EOF.

Next, if we merge with the previous block, phys_pos should be updated.
Instead, always use block->phys_pos.
libhed/file.c