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:
committed by
Cyrill Gorcunov
parent
0bbc38dbd5
commit
5b838ef981
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user