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
fc22ddf3
Commit
fc22ddf3
authored
Feb 09, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanitize output from str_format() before using it to build the snapshot's filename.
parent
1756ffef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/video_output/snapshot.c
src/video_output/snapshot.c
+4
-1
No files found.
src/video_output/snapshot.c
View file @
fc22ddf3
...
@@ -150,7 +150,10 @@ int vout_snapshot_SaveImage(char **name, int *sequential,
...
@@ -150,7 +150,10 @@ int vout_snapshot_SaveImage(char **name, int *sequential,
char
*
prefix
=
NULL
;
char
*
prefix
=
NULL
;
if
(
cfg
->
prefix_fmt
)
if
(
cfg
->
prefix_fmt
)
prefix
=
str_format
(
object
,
cfg
->
prefix_fmt
);
prefix
=
str_format
(
object
,
cfg
->
prefix_fmt
);
if
(
!
prefix
)
{
if
(
prefix
)
filename_sanitize
(
prefix
);
else
{
prefix
=
strdup
(
"vlcsnap-"
);
prefix
=
strdup
(
"vlcsnap-"
);
if
(
!
prefix
)
if
(
!
prefix
)
goto
error
;
goto
error
;
...
...
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