tempfile only needs to be opened with wb, not w+b

This commit is contained in:
Josh Coalson
2004-07-16 00:31:43 +00:00
parent b0be1e87bd
commit 89f161c50f
2 changed files with 2 additions and 2 deletions

View 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;