Fix reuse_loaded_data()
commita020da28a01538d64e12af24909a4a9ef397037e
authorPetr Tesarik <petr@tesarici.cz>
Tue, 2 Oct 2012 21:51:15 +0000 (2 23:51 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 2 Oct 2012 21:51:15 +0000 (2 23:51 +0200)
tree4956b79048cb4bfb15f77e89e5b69d26f9dc541e
parent69b22893573bdbf400a55fd096abadc65fc7e08e
Fix reuse_loaded_data()

The physical block with the reused data is punched at the wrong offset
into the virtual block.

The function tries to devirtualize as many preceding bytes as possible,
but that also changes the position inside the original virtual block.
libhed/file.c