summaryrefslogtreecommitdiff
path: root/fluid/fluid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/fluid.cxx')
-rw-r--r--fluid/fluid.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index 26bc5a500..fbfe5a870 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -946,7 +946,7 @@ bool new_project_from_template() {
char line[1024], *ptr, *next;
FILE *infile, *outfile;
- if ((infile = fl_fopen(tname, "r")) == NULL) {
+ if ((infile = fl_fopen(tname, "rb")) == NULL) {
fl_alert("Error reading template file \"%s\":\n%s", tname,
strerror(errno));
set_modflag(0);
@@ -954,7 +954,7 @@ bool new_project_from_template() {
return false;
}
- if ((outfile = fl_fopen(cutfname(1), "w")) == NULL) {
+ if ((outfile = fl_fopen(cutfname(1), "wb")) == NULL) {
fl_alert("Error writing buffer file \"%s\":\n%s", cutfname(1),
strerror(errno));
fclose(infile);