Commit 11898ef3 authored by Jean-Philippe Andre's avatar Jean-Philippe Andre

Revert b1cea0a3 partially (bad warning fix)

Sorry I pushed this.
parent 31da28cd
......@@ -378,12 +378,7 @@ static void NextFileWrite( access_t *p_access )
/* Put written file in read list */
if( p_sys->i_write_size < p_sys->i_file_size )
if( ftruncate( fileno( p_sys->p_write_list->file ),
p_sys->i_write_size ) == -1 )
{
msg_Dbg( p_access, "unable to truncate file: %m" );
/* return; */
}
ftruncate( fileno( p_sys->p_write_list->file ), p_sys->i_write_size );
fseek( p_sys->p_write_list->file, 0, SEEK_SET );
*p_sys->pp_read_last = p_sys->p_write_list;
......
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