tempfile only needs to be opened with wb, not w+b
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 16 Jul 2004 00:31:43 +0000 (00:31 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 16 Jul 2004 00:31:43 +0000 (00:31 +0000)
src/test_libFLAC++/metadata_manip.cpp
src/test_libFLAC/metadata_manip.c

index 7720d4d..fccf0d2 100644 (file)
@@ -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;
index 540c3e6..d8e73d9 100644 (file)
@@ -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;