Skip to content
Snippets Groups Projects
Commit d68c7e7b authored by Russell Taylor's avatar Russell Taylor
Browse files

Missing file closure was presumably leading to us running out of file handles. Re #1172.

parent caab3a1c
No related branches found
No related tags found
No related merge requests found
......@@ -667,6 +667,7 @@ bool LoadRaw3::isAscii(const std::string & filename) const
FILE* file = fopen(filename.c_str(), "rb");
char data[256];
int n = fread(data, 1, sizeof(data), file);
fclose(file);
char *pend = &data[n];
/*
* Call it a binary file if we find a non-ascii character in the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment