Be more explicit about "what" is necessary to read the file properly

This commit is contained in:
apio 2022-11-23 18:32:42 +01:00
parent fd85cf1c6a
commit f929a860c4

View File

@ -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)