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
6e9aebe3
Commit
6e9aebe3
authored
Aug 04, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify
parent
6a3e9f6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/control/http/util.c
modules/control/http/util.c
+2
-3
No files found.
modules/control/http/util.c
View file @
6e9aebe3
...
...
@@ -965,6 +965,7 @@ char *E_(RealPath)( intf_thread_t *p_intf, const char *psz_src )
}
#endif
/* FIXME: this could be O(N) rather than O(N²)... */
/* Remove multiple separators and /./ */
p
=
psz_dir
;
while
(
(
p
=
strchr
(
p
,
sep
))
!=
NULL
)
...
...
@@ -979,10 +980,8 @@ char *E_(RealPath)( intf_thread_t *p_intf, const char *psz_src )
if
(
psz_dir
[
0
]
==
'~'
)
{
char
*
dir
=
malloc
(
strlen
(
psz_dir
)
+
strlen
(
p_intf
->
p_libvlc
->
psz_userdir
)
);
/* This is incomplete : we should also support the ~cmassiot/ syntax. */
sprintf
(
dir
,
"%s%s"
,
p_intf
->
p_libvlc
->
psz_userdir
,
psz_dir
+
1
);
asprintf
(
&
dir
,
"%s%s"
,
p_intf
->
p_libvlc
->
psz_userdir
,
psz_dir
+
1
);
free
(
psz_dir
);
psz_dir
=
dir
;
}
...
...
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