Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
369d697c
Commit
369d697c
authored
Jun 12, 2015
by
Erwan Tulou
Browse files
skins2: replace all fopen() with vlc_fopen()
parent
9e9fd90d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins2/src/ft2_font.cpp
View file @
369d697c
...
...
@@ -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)"
,
...
...
modules/gui/skins2/src/theme_loader.cpp
View file @
369d697c
...
...
@@ -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
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment