Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
35e982dd
Commit
35e982dd
authored
Apr 07, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminate non-valid characters only on the name not on the full path (closes #628)
parent
f84a3bf3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
modules/access_filter/record.c
modules/access_filter/record.c
+13
-2
No files found.
modules/access_filter/record.c
View file @
35e982dd
...
...
@@ -396,8 +396,8 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
if
(
psz_name
==
NULL
)
psz_name
=
strdup
(
"Unknown"
);
asprintf
(
&
p_sys
->
psz_file
,
"%s
/%s
%d-%d-%d %.2dh%.2dm%.2ds.%s"
,
p
_sys
->
psz_path
,
p
sz_name
,
asprintf
(
&
p_sys
->
psz_file
,
"%s %d-%d-%d %.2dh%.2dm%.2ds.%s"
,
psz_name
,
l
.
tm_mday
,
l
.
tm_mon
+
1
,
l
.
tm_year
+
1900
,
l
.
tm_hour
,
l
.
tm_min
,
l
.
tm_sec
,
p_sys
->
psz_ext
);
...
...
@@ -421,6 +421,17 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
#endif
}
psz_name
=
strdup
(
p_sys
->
psz_file
);
#if defined (WIN32) || defined (UNDER_CE)
#define DIR_SEP "\\"
#else
#define DIR_SEP "/"
#endif
asprintf
(
&
p_sys
->
psz_file
,
"%s"
DIR_SEP
"%s"
,
p_sys
->
psz_path
,
psz_name
);
free
(
psz_name
);
msg_Dbg
(
p_access
,
"dump in file '%s'"
,
p_sys
->
psz_file
);
p_sys
->
f
=
utf8_fopen
(
p_sys
->
psz_file
,
"wb"
);
...
...
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