Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
de3f8c02
Commit
de3f8c02
authored
Oct 26, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use asprintf and check it.
parent
c22fcbc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/interface/interface.c
src/interface/interface.c
+5
-4
No files found.
src/interface/interface.c
View file @
de3f8c02
...
...
@@ -271,13 +271,14 @@ static void * MonitorLibVLCDeath( vlc_object_t * p_this )
static
int
AddIntfCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
intf_thread_t
*
p_intf
;
char
*
psz_intf
=
malloc
(
strlen
(
newval
.
psz_string
)
+
sizeof
(
",none"
)
);
(
void
)
psz_cmd
;
(
void
)
oldval
;
(
void
)
p_data
;
intf_thread_t
*
p_intf
;
char
*
psz_intf
;
/* Try to create the interface */
sprintf
(
psz_intf
,
"%s,none"
,
newval
.
psz_string
);
if
(
asprintf
(
&
psz_intf
,
"%s,none"
,
newval
.
psz_string
)
==
-
1
)
return
VLC_ENOMEM
;
p_intf
=
intf_Create
(
p_this
->
p_libvlc
,
psz_intf
);
free
(
psz_intf
);
if
(
p_intf
==
NULL
)
...
...
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