Commit 89f161c5 authored by Josh Coalson's avatar Josh Coalson
Browse files

tempfile only needs to be opened with wb, not w+b

parent b0be1e87
......@@ -189,7 +189,7 @@ bool open_tempfile_(const char *filename, FILE **tempfile, char **tempfilename)
strcpy(*tempfilename, filename);
strcat(*tempfilename, tempfile_suffix);
if(0 == (*tempfile = fopen(*tempfilename, "w+b")))
if(0 == (*tempfile = fopen(*tempfilename, "wb")))
return false;
return true;
......
......@@ -172,7 +172,7 @@ FLAC__bool open_tempfile_(const char *filename, FILE **tempfile, char **tempfile
strcpy(*tempfilename, filename);
strcat(*tempfilename, tempfile_suffix);
if(0 == (*tempfile = fopen(*tempfilename, "w+b")))
if(0 == (*tempfile = fopen(*tempfilename, "wb")))
return false;
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment