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
1e8f8d5c
Commit
1e8f8d5c
authored
Aug 24, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/demux/util/sub.c : compile fix
parent
b34227c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/demux/util/sub.c
modules/demux/util/sub.c
+3
-2
No files found.
modules/demux/util/sub.c
View file @
1e8f8d5c
...
...
@@ -2,7 +2,7 @@
* sub.c
*****************************************************************************
* Copyright (C) 1999-2003 VideoLAN
* $Id: sub.c,v 1.2
3 2003/08/24 00:36:38 fenri
r Exp $
* $Id: sub.c,v 1.2
4 2003/08/24 14:43:07 tite
r Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -311,9 +311,10 @@ char* sub_detect( subtitle_demux_t *p_sub, char *psz_filename)
msg_Dbg
(
p_sub
,
"autodetected subtitlefile: %s"
,
strdup
(
p_dir_afile
->
d_name
)
);
if
(
psz_dir
)
{
char
*
psz_append
;
psz_result
=
(
char
*
)
malloc
(
i_dirlen
+
strlen
(
p_dir_afile
->
d_name
)
+
1
);
strncpy
(
psz_result
,
psz_dir
,
i_dirlen
);
char
*
psz_append
=
psz_result
+
i_dirlen
;
psz_append
=
psz_result
+
i_dirlen
;
strncpy
(
psz_append
,
p_dir_afile
->
d_name
,
strlen
(
p_dir_afile
->
d_name
)
);
psz_result
[
i_dirlen
+
strlen
(
p_dir_afile
->
d_name
)]
=
'\0'
;
return
psz_result
;
...
...
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