Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
01b080ab
Commit
01b080ab
authored
Dec 16, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C++-proofing
parent
6b40432a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/vlc_charset.h
include/vlc_charset.h
+2
-2
No files found.
include/vlc_charset.h
View file @
01b080ab
...
@@ -86,7 +86,7 @@ static inline char *FromWide (const wchar_t *wide)
...
@@ -86,7 +86,7 @@ static inline char *FromWide (const wchar_t *wide)
*/
*/
static
inline
char
*
FromLatin1
(
const
char
*
latin
)
static
inline
char
*
FromLatin1
(
const
char
*
latin
)
{
{
char
*
str
=
malloc
(
2
*
strlen
(
latin
)
+
1
),
*
utf8
=
str
;
char
*
str
=
(
char
*
)
malloc
(
2
*
strlen
(
latin
)
+
1
),
*
utf8
=
str
;
unsigned
char
c
;
unsigned
char
c
;
if
(
str
==
NULL
)
if
(
str
==
NULL
)
...
@@ -104,7 +104,7 @@ static inline char *FromLatin1 (const char *latin)
...
@@ -104,7 +104,7 @@ static inline char *FromLatin1 (const char *latin)
}
}
*
(
utf8
++
)
=
'\0'
;
*
(
utf8
++
)
=
'\0'
;
utf8
=
realloc
(
str
,
utf8
-
str
);
utf8
=
(
char
*
)
realloc
(
str
,
utf8
-
str
);
return
utf8
?
utf8
:
str
;
return
utf8
?
utf8
:
str
;
}
}
...
...
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