Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Baptiste Kempf
VLC
Commits
021d3cb9
Commit
021d3cb9
authored
16 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
C++ compile fixes
parent
e7b46c63
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vlc_fixups.h
+2
-2
2 additions, 2 deletions
include/vlc_fixups.h
with
2 additions
and
2 deletions
include/vlc_fixups.h
+
2
−
2
View file @
021d3cb9
...
...
@@ -32,7 +32,7 @@
static
inline
char
*
strdup
(
const
char
*
str
)
{
size_t
len
=
strlen
(
str
)
+
1
;
char
*
res
=
malloc
(
len
);
char
*
res
=
(
char
*
)
malloc
(
len
);
if
(
res
)
memcpy
(
res
,
str
,
len
);
return
res
;
}
...
...
@@ -45,7 +45,7 @@ static inline char *strdup (const char *str)
static
inline
int
vasprintf
(
char
**
strp
,
const
char
*
fmt
,
va_list
ap
)
{
int
len
=
vsnprintf
(
NULL
,
0
,
fmt
,
ap
)
+
1
;
char
*
res
=
malloc
(
len
);
char
*
res
=
(
char
*
)
malloc
(
len
);
if
(
res
==
NULL
)
return
-
1
;
*
strp
=
res
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment