Fix fopen() file mode in fileio_fmt_autodetect()

This commit is contained in:
Stefan Rueger
2022-11-29 19:46:48 +00:00
parent 2f2a6c0008
commit ea2d7eec95

View File

@@ -1335,7 +1335,7 @@ int fileio_fmt_autodetect(const char * fname)
int found;
int first = 1;
#if defined(WIN32)
#if !defined(WIN32)
f = fopen(fname, "r");
#else
f = fopen(fname, "rb");