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
0a7905f6
Commit
0a7905f6
authored
Apr 14, 2008
by
Jérôme Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of plugin-path with escaping chars...
parent
3b420ec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/modules/modules.c
src/modules/modules.c
+5
-5
No files found.
src/modules/modules.c
View file @
0a7905f6
...
@@ -863,7 +863,7 @@ void module_PutConfig( module_config_t *config )
...
@@ -863,7 +863,7 @@ void module_PutConfig( module_config_t *config )
static
char
*
copy_next_paths_token
(
char
*
paths
,
char
**
remaining_paths
)
static
char
*
copy_next_paths_token
(
char
*
paths
,
char
**
remaining_paths
)
{
{
char
*
path
;
char
*
path
;
int
i
;
int
i
,
done
;
bool
escaped
=
false
;
bool
escaped
=
false
;
assert
(
paths
);
assert
(
paths
);
...
@@ -873,20 +873,20 @@ static char * copy_next_paths_token( char * paths, char ** remaining_paths )
...
@@ -873,20 +873,20 @@ static char * copy_next_paths_token( char * paths, char ** remaining_paths )
if
(
!
path
)
return
NULL
;
if
(
!
path
)
return
NULL
;
/* Look for PATH_SEP_CHAR (a ':' or a ';') */
/* Look for PATH_SEP_CHAR (a ':' or a ';') */
for
(
i
=
0
;
paths
[
i
];
i
++
)
{
for
(
i
=
0
,
done
=
0
;
paths
[
i
];
i
++
)
{
/* Take care of \\ and \: or \; escapement */
/* Take care of \\ and \: or \; escapement */
if
(
escaped
)
{
if
(
escaped
)
{
escaped
=
false
;
escaped
=
false
;
path
[
i
]
=
paths
[
i
];
path
[
done
++
]
=
paths
[
i
];
}
}
else
if
(
paths
[
i
]
==
'\\'
)
else
if
(
paths
[
i
]
==
'\\'
)
escaped
=
true
;
escaped
=
true
;
else
if
(
paths
[
i
]
==
PATH_SEP_CHAR
)
else
if
(
paths
[
i
]
==
PATH_SEP_CHAR
)
break
;
break
;
else
else
path
[
i
]
=
paths
[
i
];
path
[
done
++
]
=
paths
[
i
];
}
}
path
[
i
]
=
0
;
path
[
done
++
]
=
0
;
/* Return the remaining paths */
/* Return the remaining paths */
if
(
remaining_paths
)
{
if
(
remaining_paths
)
{
...
...
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