From 14de6c789c3fdb8a09b8a41fb8b826615b10ea36 Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Fri, 14 Jun 2024 17:04:42 -0400 Subject: [PATCH] Make read_file to read text file only. --- mir-tests/test-read.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mir-tests/test-read.h b/mir-tests/test-read.h index bcf12a3c9c..8b3f5a5f56 100644 --- a/mir-tests/test-read.h +++ b/mir-tests/test-read.h @@ -1,9 +1,9 @@ -static char *read_file (const char *name) { +static char *read_file (const char *name) { /* we read only text files by this func */ FILE *f; size_t flen, rlen; char *str; - if ((f = fopen (name, "rb")) == NULL) { + if ((f = fopen (name, "r")) == NULL) { perror (name); exit (1); }