This commit is contained in:
alemuntoni 2021-02-12 17:48:34 +01:00
parent 4ae9537e75
commit e292f0cc9b
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ static bool IsSTLColored(const char * filename, bool &coloredFlag, bool &magicsM
static bool IsSTLBinary(const char * filename, bool &binaryFlag)
{
binaryFlag=false;
FILE *fp = fopen(filename, "r");
FILE *fp = fopen(filename, "rb");
/* Find size of file */
fseek(fp, 0, SEEK_END);
long file_size = ftell(fp);