Permalink
Browse files

Fix binary output on Windows

Fixes an issue #23 #23
  • Loading branch information...
jonatan1024 committed Oct 31, 2016
1 parent 93b8e04 commit 831a27364797420e9520bb69382e915fafbdc676
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/stl_io.c
View
@@ -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 */

0 comments on commit 831a273

Please sign in to comment.