Commit 369d697c authored by Erwan Tulou's avatar Erwan Tulou

skins2: replace all fopen() with vlc_fopen()

parent 9e9fd90d
......@@ -62,7 +62,7 @@ bool FT2Font::init()
return false;
}
FILE *file = fopen( m_name.c_str(), "rb" );
FILE *file = vlc_fopen( m_name.c_str(), "rb" );
if( !file )
{
msg_Dbg( getIntf(), "failed to open font %s (%s)",
......
......@@ -238,7 +238,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir,
return false;
}
makedir( basePath.c_str() );
FILE *fout = fopen( fullPath.c_str(), "wb" );
FILE *fout = vlc_fopen( fullPath.c_str(), "wb" );
if( fout == NULL )
{
msg_Err( getIntf(), "error opening %s", fullPath.c_str() );
......@@ -600,7 +600,7 @@ int tar_extract_all( TAR *t, char *prefix )
remaining = getoct( buffer.header.size, 12 );
if( !remaining ) outfile = NULL; else
{
outfile = fopen( fname, "wb" );
outfile = vlc_fopen( fname, "wb" );
if( outfile == NULL )
{
/* try creating directory */
......@@ -610,7 +610,7 @@ int tar_extract_all( TAR *t, char *prefix )
*p = '\0';
makedir( fname );
*p = '/';
outfile = fopen( fname, "wb" );
outfile = vlc_fopen( fname, "wb" );
if( !outfile )
{
fprintf( stderr, "tar couldn't create %s\n",
......
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