tool_metalink.c: Fixed validation of binary files containing EOF
authorMarc Hoersken <info@marc-hoersken.de>
Mon, 10 Sep 2012 23:42:58 +0000 (01:42 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Mon, 10 Sep 2012 23:42:58 +0000 (01:42 +0200)
commita6df3550cf5e28eba08a449fb820469ed316389e
tree9dd2ab2c89dc80a299588830094affdf0880e569
parent8a57b3c9726763208caa5223c0d3a0c6751aa1d8
tool_metalink.c: Fixed validation of binary files containing EOF

Since Windows/MinGW threat 0x1A as the EOF character, reading binary
files which contain that byte does not work using text mode.
The read function will only read until the first 0x1A byte. This
means that the hash is not computed from the whole file and the
final validation check using hash comparision fails.
src/tool_metalink.c