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
5a6a6caf
Commit
5a6a6caf
authored
Apr 29, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplification assuming that sizeof(char) = 1
parent
4833d61b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+2
-3
No files found.
modules/demux/mp4/drms.c
View file @
5a6a6caf
...
@@ -1797,8 +1797,7 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
...
@@ -1797,8 +1797,7 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
NULL
,
0
,
p_tmp
)
)
)
NULL
,
0
,
p_tmp
)
)
)
{
{
strncat
(
p_tmp
,
p_filename
,
min
(
strlen
(
p_filename
),
strncat
(
p_tmp
,
p_filename
,
min
(
strlen
(
p_filename
),
(
sizeof
(
p_tmp
)
/
sizeof
(
p_tmp
[
0
])
-
1
)
-
(
sizeof
(
p_tmp
)
-
1
)
-
strlen
(
p_tmp
)
)
);
strlen
(
p_tmp
)
)
);
psz_path
=
FromLocale
(
p_tmp
);
psz_path
=
FromLocale
(
p_tmp
);
strncpy
(
p_tmp
,
psz_path
,
sizeof
(
p_tmp
)
-
1
);
strncpy
(
p_tmp
,
psz_path
,
sizeof
(
p_tmp
)
-
1
);
...
@@ -1818,7 +1817,7 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
...
@@ -1818,7 +1817,7 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
#define ISCINFO "iSCInfo"
#define ISCINFO "iSCInfo"
if
(
strstr
(
psz_ipod
,
ISCINFO
)
==
NULL
)
if
(
strstr
(
psz_ipod
,
ISCINFO
)
==
NULL
)
{
{
snprintf
(
p_tmp
,
sizeof
(
p_tmp
)
/
sizeof
(
p_tmp
[
0
])
-
1
,
snprintf
(
p_tmp
,
sizeof
(
p_tmp
)
-
1
,
"%s/iPod_Control/iTunes/"
ISCINFO
"2"
,
psz_ipod
);
"%s/iPod_Control/iTunes/"
ISCINFO
"2"
,
psz_ipod
);
psz_path
=
p_tmp
;
psz_path
=
p_tmp
;
}
}
...
...
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