Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e4afdce0
Commit
e4afdce0
authored
Mar 25, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/configuration.c: Use the proper directory separator
parent
c1d72229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/misc/configuration.c
src/misc/configuration.c
+9
-3
No files found.
src/misc/configuration.c
View file @
e4afdce0
...
...
@@ -63,6 +63,11 @@
#include <tchar.h>
#endif
#if defined( WIN32 ) || defined( UNDER_CE )
# define DIR_SEP "\\"
#else
# define DIR_SEP "/"
#endif
static
int
ConfigStringToKey
(
char
*
);
static
char
*
ConfigKeyToString
(
int
);
...
...
@@ -775,7 +780,8 @@ int __config_LoadConfigFile( vlc_object_t *p_this, const char *psz_module_name )
psz_filename
=
(
char
*
)
malloc
(
sizeof
(
"/"
CONFIG_DIR
"/"
CONFIG_FILE
)
+
strlen
(
psz_homedir
)
);
if
(
psz_filename
)
sprintf
(
psz_filename
,
"%s/"
CONFIG_DIR
"/"
CONFIG_FILE
,
sprintf
(
psz_filename
,
"%s"
DIR_SEP
CONFIG_DIR
DIR_SEP
CONFIG_FILE
,
psz_homedir
);
}
else
...
...
@@ -1019,7 +1025,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
strlen
(
psz_homedir
)
);
if
(
psz_filename
)
sprintf
(
psz_filename
,
"%s
/"
CONFIG_DIR
,
psz_homedir
);
sprintf
(
psz_filename
,
"%s
"
DIR_SEP
CONFIG_DIR
,
psz_homedir
);
if
(
!
psz_filename
)
{
...
...
@@ -1030,7 +1036,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
config_CreateDir
(
p_this
,
psz_filename
);
strcat
(
psz_filename
,
"/"
CONFIG_FILE
);
strcat
(
psz_filename
,
DIR_SEP
CONFIG_FILE
);
}
else
{
...
...
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