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
fbb3035b
Commit
fbb3035b
authored
Aug 15, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/modules.c: enforce DIR_SEP in paths
parent
f60e1bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/modules/modules.c
src/modules/modules.c
+7
-7
No files found.
src/modules/modules.c
View file @
fbb3035b
...
@@ -1662,8 +1662,8 @@ static void CacheLoad( vlc_object_t *p_this )
...
@@ -1662,8 +1662,8 @@ static void CacheLoad( vlc_object_t *p_this )
return
;
return
;
}
}
i_size
=
asprintf
(
&
psz_filename
,
"%s
/%s/%s/%s"
,
psz_homedir
,
CONFIG_DIR
,
i_size
=
asprintf
(
&
psz_filename
,
"%s
"
DIR_SEP
"%s"
DIR_SEP
"%s"
DIR_SEP
"%s"
,
PLUGINSCACHE_DIR
,
CacheName
()
);
psz_homedir
,
CONFIG_DIR
,
PLUGINSCACHE_DIR
,
CacheName
()
);
if
(
i_size
<=
0
)
if
(
i_size
<=
0
)
{
{
msg_Err
(
p_this
,
"out of memory"
);
msg_Err
(
p_this
,
"out of memory"
);
...
@@ -2016,7 +2016,7 @@ static void CacheSave( vlc_object_t *p_this )
...
@@ -2016,7 +2016,7 @@ static void CacheSave( vlc_object_t *p_this )
return
;
return
;
}
}
psz_filename
=
psz_filename
=
(
char
*
)
malloc
(
sizeof
(
"/"
CONFIG_DIR
"/"
PLUGINSCACHE_DIR
"/"
)
+
(
char
*
)
malloc
(
sizeof
(
DIR_SEP
CONFIG_DIR
DIR_SEP
PLUGINSCACHE_DIR
DIR_SEP
)
+
strlen
(
psz_homedir
)
+
strlen
(
CacheName
())
);
strlen
(
psz_homedir
)
+
strlen
(
CacheName
())
);
if
(
!
psz_filename
)
if
(
!
psz_filename
)
...
@@ -2025,15 +2025,15 @@ static void CacheSave( vlc_object_t *p_this )
...
@@ -2025,15 +2025,15 @@ static void CacheSave( vlc_object_t *p_this )
return
;
return
;
}
}
sprintf
(
psz_filename
,
"%s
/
%s"
,
psz_homedir
,
CONFIG_DIR
);
sprintf
(
psz_filename
,
"%s
"
DIR_SEP
"
%s"
,
psz_homedir
,
CONFIG_DIR
);
config_CreateDir
(
p_this
,
psz_filename
);
config_CreateDir
(
p_this
,
psz_filename
);
strcat
(
psz_filename
,
"/"
PLUGINSCACHE_DIR
);
strcat
(
psz_filename
,
DIR_SEP
PLUGINSCACHE_DIR
);
config_CreateDir
(
p_this
,
psz_filename
);
config_CreateDir
(
p_this
,
psz_filename
);
strcat
(
psz_filename
,
"/
CACHEDIR.TAG"
);
strcat
(
psz_filename
,
DIR_SEP
"
CACHEDIR.TAG"
);
file
=
utf8_fopen
(
psz_filename
,
"wb"
);
file
=
utf8_fopen
(
psz_filename
,
"wb"
);
if
(
file
)
if
(
file
)
...
@@ -2042,7 +2042,7 @@ static void CacheSave( vlc_object_t *p_this )
...
@@ -2042,7 +2042,7 @@ static void CacheSave( vlc_object_t *p_this )
fclose
(
file
);
fclose
(
file
);
}
}
sprintf
(
psz_filename
,
"%s
/%s/%s/
%s"
,
psz_homedir
,
CONFIG_DIR
,
sprintf
(
psz_filename
,
"%s
"
DIR_SEP
"%s"
DIR_SEP
"%s"
DIR_SEP
"
%s"
,
psz_homedir
,
CONFIG_DIR
,
PLUGINSCACHE_DIR
,
CacheName
()
);
PLUGINSCACHE_DIR
,
CacheName
()
);
msg_Dbg
(
p_this
,
"saving plugins cache file %s"
,
psz_filename
);
msg_Dbg
(
p_this
,
"saving plugins cache file %s"
,
psz_filename
);
...
...
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