Bugfix: binary ASCII files were not written with the correct fopen() mode. #2928

This commit is contained in:
Alessandro Ranellucci 2015-06-20 14:16:23 +02:00
parent 3cd6c78044
commit 4a39665804

View File

@ -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 */