mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 05:54:03 -06:00
Bugfix: binary ASCII files were not written with the correct fopen() mode. #2928
This commit is contained in:
parent
3cd6c78044
commit
4a39665804
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ stl_write_binary(stl_file *stl, const char *file, const char *label) {
|
|||
if (stl->error) return;
|
||||
|
||||
/* Open the file */
|
||||
fp = fopen(file, "w");
|
||||
fp = fopen(file, "wb");
|
||||
if(fp == NULL) {
|
||||
error_msg = (char*)
|
||||
malloc(81 + strlen(file)); /* Allow 80 chars+file size for message */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue