0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

codeview: Make md5sum calc read file in 'binary' mode

When assembling on Windows machines with CRLF line endings, computing
the MD5 hash from the file read in "text" mode (transforms CRLF->LF)
gives incorrect results.

Signed-off-by: Fabian Giesen <fabiang@radgametools.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Fabian Giesen
2016-04-28 13:48:15 -07:00
committed by Cyrill Gorcunov
parent 0bbc38dbd5
commit 5b838ef981
3 changed files with 8 additions and 8 deletions

View File

@@ -309,7 +309,7 @@ static void calc_md5(const char *const filename,
FILE *f;
MD5_CTX ctx;
f = pp_input_fopen(filename);
f = pp_input_fopen(filename, "rb");
if (!f)
goto done;