]> git.sesse.net Git - vlc/commitdiff
Use right mode for fdopen.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 17 Jan 2009 21:04:57 +0000 (22:04 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 17 Jan 2009 21:04:57 +0000 (22:04 +0100)
Noticed by courmish.

src/input/es_out_timeshift.c

index a94b7aab9281cb43c63b42c1695aa987d0755c7f..729ed65a56694dc858f1b921eb530d47ae8b3887 100644 (file)
@@ -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 );