}
/*
- * This wad of functions supports filename- and callback-based chain writing.
+ * This wad of functions supports filename- and callback-based chain reading/writing.
* Everything up to set_file_stats_() is copied from libFLAC/metadata_iterators.c
*/
FLAC__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;