Skip to content

Commit

Permalink
Update md5.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 1, 2024
1 parent 88391cf commit 7cb10ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void md5_file(const char filename[], char hashout[(2 * MD5_BLOCK_SIZE) + 1]) {

BYTE buffer[1024];

size_t numbytes = -1;
size_t numbytes = 1;
while (numbytes != 0 && feof(infile) == 0) {
numbytes = fread(buffer, sizeof(char), 1024, infile);
assert_always(ferror(infile) == 0);
Expand Down

0 comments on commit 7cb10ef

Please sign in to comment.