be more precise in long long int literal specification for ANSI compilers (gcc3 requi...
[platform/upstream/flac.git] / src / test_libFLAC / metadata_manip.c
index 2c26268..d8e73d9 100644 (file)
@@ -160,7 +160,7 @@ static void delete_from_our_metadata_(unsigned position)
 }
 
 /*
- * 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)
@@ -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;