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 ) ...@@ -1552,7 +1552,7 @@ static FILE *GetTmpFile( char **ppsz_file, const char *psz_path )
return NULL; return NULL;
/* */ /* */
f = fdopen( fd, "r+b" ); f = fdopen( fd, "w+b" );
if( !f ) if( !f )
close( fd ); 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