replace_chunk: fix wrong sign-extension
commit0d8b9622f7d552152b16acc02e53479509302f1e
authorPetr Tesarik <petr@tesarici.cz>
Sun, 9 Dec 2012 22:54:56 +0000 (9 23:54 +0100)
committerPetr Tesarik <petr@tesarici.cz>
Sun, 9 Dec 2012 22:54:56 +0000 (9 23:54 +0100)
treecac7957af56434552d7a50869f383b8b4dfab63b
parenta665b4bb71ecbb25bbeccdb728a19cb4808f30cf
replace_chunk: fix wrong sign-extension

The length was incorrectly sign-extended here (the length was first
negated and then always zero-extended), which leads to weird failures
on 32-bit systems.
libhed/file.c