From 89f161c50fc3d4ae20e31c4f1447a129abe96d2f Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 16 Jul 2004 00:31:43 +0000 Subject: [PATCH] tempfile only needs to be opened with wb, not w+b --- src/test_libFLAC++/metadata_manip.cpp | 2 +- src/test_libFLAC/metadata_manip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test_libFLAC++/metadata_manip.cpp b/src/test_libFLAC++/metadata_manip.cpp index 7720d4d..fccf0d2 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 540c3e6..d8e73d9 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; -- 2.7.4