[vlc-devel] commit: Use right mode for fdopen. (Laurent Aimar )

git version control git at videolan.org
Sat Jan 17 22:12:07 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jan 17 22:04:57 2009 +0100| [348da1fdf0c8c6cc24e2b271eb5ec9b79c7cd76f] | committer: Laurent Aimar 

Use right mode for fdopen.

Noticed by courmish.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=348da1fdf0c8c6cc24e2b271eb5ec9b79c7cd76f
---

 src/input/es_out_timeshift.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index a94b7aa..729ed65 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -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 );
 




More information about the vlc-devel mailing list