Skip to content

Commit 14de6c7

Browse files
committed
Make read_file to read text file only.
1 parent 39fae0a commit 14de6c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mir-tests/test-read.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
static char *read_file (const char *name) {
1+
static char *read_file (const char *name) { /* we read only text files by this func */
22
FILE *f;
33
size_t flen, rlen;
44
char *str;
55

6-
if ((f = fopen (name, "rb")) == NULL) {
6+
if ((f = fopen (name, "r")) == NULL) {
77
perror (name);
88
exit (1);
99
}

0 commit comments

Comments
 (0)