From f929a860c470b3409f365086ac55a715042428ff Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 23 Nov 2022 18:32:42 +0100 Subject: [PATCH] Be more explicit about "what" is necessary to read the file properly --- src/tar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tar.c b/src/tar.c index 75bea42..041ffde 100644 --- a/src/tar.c +++ b/src/tar.c @@ -14,7 +14,9 @@ size_t minitar_get_size_in_blocks(size_t); struct minitar* minitar_open(const char* pathname) { - FILE* fp = fopen(pathname, "rb"); // On some systems, this might be necessary to read the file properly. + FILE* fp = + fopen(pathname, + "rb"); // On some systems, opening the file in binary mode might be necessary to read the file properly. if (!fp) return NULL; struct minitar* mp = malloc(sizeof(struct minitar)); if (!mp)