From 280a1a369eb832636fec775f06ffaac462953ade Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 23 Mar 2014 19:17:02 +0100 Subject: [PATCH] Bugfix: binary STL export produced corrupt results on Windows. #1814 --- xs/src/admesh/stl_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/admesh/stl_io.c b/xs/src/admesh/stl_io.c index daa999b8d..95dff856e 100644 --- a/xs/src/admesh/stl_io.c +++ b/xs/src/admesh/stl_io.c @@ -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*)