mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
tempfile only needs to be opened with wb, not w+b
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user