]> git.sesse.net Git - vlc/commitdiff
* modules/misc/logger.c: don't truncate logfile upon creation.
authorSam Hocevar <sam@videolan.org>
Wed, 4 Oct 2006 17:13:02 +0000 (17:13 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 4 Oct 2006 17:13:02 +0000 (17:13 +0000)
modules/misc/logger.c

index 606804a9c041666c4d0f6b12b8dbbbca8cbfc33f..22fa74b8ccf2c62cfa742649a88aaae4575c2a6f 100644 (file)
@@ -243,7 +243,7 @@ static int Open( vlc_object_t *p_this )
 
         /* Open the log file and remove any buffering for the stream */
         msg_Dbg( p_intf, "opening logfile `%s'", psz_file );
-        p_intf->p_sys->p_file = utf8_fopen( psz_file, "wt" );
+        p_intf->p_sys->p_file = utf8_fopen( psz_file, "at" );
         if( p_intf->p_sys->p_file == NULL )
         {
             msg_Err( p_intf, "error opening logfile `%s'", psz_file );