diff --git a/src/test_libFLAC++/metadata_manip.cpp b/src/test_libFLAC++/metadata_manip.cpp index 7720d4d2..fccf0d21 100644 --- a/src/test_libFLAC++/metadata_manip.cpp +++ b/src/test_libFLAC++/metadata_manip.cpp @@ -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; diff --git a/src/test_libFLAC/metadata_manip.c b/src/test_libFLAC/metadata_manip.c index 540c3e6e..d8e73d93 100644 --- a/src/test_libFLAC/metadata_manip.c +++ b/src/test_libFLAC/metadata_manip.c @@ -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;