Commit 348da1fd authored by Laurent Aimar's avatar Laurent Aimar

Use right mode for fdopen.

Noticed by courmish.
parent d27169fb
......@@ -1552,7 +1552,7 @@ static FILE *GetTmpFile( char **ppsz_file, const char *psz_path )
return NULL;
/* */
f = fdopen( fd, "r+b" );
f = fdopen( fd, "w+b" );
if( !f )
close( fd );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment