aboutsummaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/md5sum.c b/md5sum.c
index 72bc08624..bb4d115ca 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -770,12 +770,10 @@ static int md5_file(const char *filename,
770 have_read_stdin = 1; 770 have_read_stdin = 1;
771 fp = stdin; 771 fp = stdin;
772 } else { 772 } else {
773 fp = fopen(filename, "r"); 773 fp = wfopen(filename, "r");
774 if (fp == NULL) { 774 if (fp == NULL)
775 perror_msg("%s", filename);
776 return FALSE; 775 return FALSE;
777 } 776 }
778 }
779 777
780 if (md5_stream(fp, md5_result)) { 778 if (md5_stream(fp, md5_result)) {
781 perror_msg("%s", filename); 779 perror_msg("%s", filename);
@@ -807,12 +805,10 @@ static int md5_check(const char *checkfile_name)
807 have_read_stdin = 1; 805 have_read_stdin = 1;
808 checkfile_stream = stdin; 806 checkfile_stream = stdin;
809 } else { 807 } else {
810 checkfile_stream = fopen(checkfile_name, "r"); 808 checkfile_stream = wfopen(checkfile_name, "r");
811 if (checkfile_stream == NULL) { 809 if (checkfile_stream == NULL)
812 perror_msg("%s", checkfile_name);
813 return FALSE; 810 return FALSE;
814 } 811 }
815 }
816 812
817 line_number = 0; 813 line_number = 0;
818 814