Bugfix: binary STL export produced corrupt results on Windows. #1814
This commit is contained in:
parent
2d9c399d96
commit
280a1a369e
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ stl_write_binary(stl_file *stl, const char *file, const char *label)
|
|||
|
||||
|
||||
/* Open the file */
|
||||
fp = fopen(file, "w");
|
||||
fp = fopen(file, "wb");
|
||||
if(fp == NULL)
|
||||
{
|
||||
error_msg = (char*)
|
||||
|
|
Loading…
Reference in a new issue