Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c3319cfa
Commit
c3319cfa
authored
Oct 16, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix the sub autodetect directory string
parent
d2dc7007
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/input/subtitles.c
src/input/subtitles.c
+2
-2
No files found.
src/input/subtitles.c
View file @
c3319cfa
...
...
@@ -302,11 +302,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
f_fname
=
malloc
(
strlen
(
tmp
)
);
if
(
f_fname
)
strcpy
(
f_fname
,
tmp
+
1
);
// we skip the seperator, so it will still fit in the allocated space
dirlen
=
strlen
(
psz_fname
)
-
strlen
(
tmp
)
;
dirlen
=
strlen
(
psz_fname
)
-
strlen
(
tmp
)
+
1
;
// add the seperator
f_dir
=
malloc
(
dirlen
+
1
);
if
(
f_dir
)
{
strncpy
(
f_dir
,
psz_fname
,
dirlen
+
1
);
strncpy
(
f_dir
,
psz_fname
,
dirlen
);
f_dir
[
dirlen
]
=
0
;
}
}
...
...
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