tempfile only needs to be opened with wb, not w+b
This commit is contained in:
parent
b0be1e87bd
commit
89f161c50f
@ -189,7 +189,7 @@ bool open_tempfile_(const char *filename, FILE **tempfile, char **tempfilename)
|
|||||||
strcpy(*tempfilename, filename);
|
strcpy(*tempfilename, filename);
|
||||||
strcat(*tempfilename, tempfile_suffix);
|
strcat(*tempfilename, tempfile_suffix);
|
||||||
|
|
||||||
if(0 == (*tempfile = fopen(*tempfilename, "w+b")))
|
if(0 == (*tempfile = fopen(*tempfilename, "wb")))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -172,7 +172,7 @@ FLAC__bool open_tempfile_(const char *filename, FILE **tempfile, char **tempfile
|
|||||||
strcpy(*tempfilename, filename);
|
strcpy(*tempfilename, filename);
|
||||||
strcat(*tempfilename, tempfile_suffix);
|
strcat(*tempfilename, tempfile_suffix);
|
||||||
|
|
||||||
if(0 == (*tempfile = fopen(*tempfilename, "w+b")))
|
if(0 == (*tempfile = fopen(*tempfilename, "wb")))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user