Skip to content

Commit

Permalink
Bugfix: some binary STL files were not correctly parsed on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel authored and hroncok committed Nov 20, 2013
1 parent 208f485 commit f25f9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stlinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ stl_initialize(stl_file *stl, char *file)
if(chtest[s] > 127)
{
stl->stats.type = binary;
/* close and reopen with binary flag (needed on Windows) */
fclose(stl->fp);
stl->fp = fopen(file, "rb");
break;
}
}
Expand Down

0 comments on commit f25f9c6

Please sign in to comment.