Skip to content

Commit

Permalink
Bugfix: binary ASCII files were not written with the correct fopen() …
Browse files Browse the repository at this point in the history
…mode. #2928
  • Loading branch information
alranel committed Jun 20, 2015
1 parent 3cd6c78 commit 4a39665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xs/src/admesh/stl_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4a39665

Please sign in to comment.