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
89561739
Commit
89561739
authored
Mar 24, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use sprintf without a format
parent
308aaf6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/text/strings.c
src/text/strings.c
+2
-3
No files found.
src/text/strings.c
View file @
89561739
...
...
@@ -659,7 +659,8 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
int
b_empty_if_na
=
0
;
char
buf
[
10
];
int
i_size
=
strlen
(
string
)
+
1
;
/* +1 to store '\0' */
char
*
dst
=
malloc
(
i_size
);
char
*
dst
=
strdup
(
string
);
if
(
!
dst
)
return
NULL
;
int
d
=
0
;
playlist_t
*
p_playlist
=
pl_Yield
(
p_object
);
...
...
@@ -672,8 +673,6 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
p_item
=
input_GetItem
(
p_input
);
}
sprintf
(
dst
,
string
);
while
(
*
s
)
{
if
(
b_is_format
)
...
...
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