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);
|
||||
strcat(*tempfilename, tempfile_suffix);
|
||||
|
||||
if(0 == (*tempfile = fopen(*tempfilename, "w+b")))
|
||||
if(0 == (*tempfile = fopen(*tempfilename, "wb")))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user