Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
flac
Commits
64b7142a
Commit
64b7142a
authored
Jan 16, 2017
by
Erik de Castro Lopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final unsigned fixes
Found using the Makefile.lite build system.
parent
9bb7a7e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/plugin_common/tags.c
src/plugin_common/tags.c
+4
-4
No files found.
src/plugin_common/tags.c
View file @
64b7142a
...
...
@@ -118,8 +118,8 @@ static FLAC__uint16 *local__convert_utf8_to_ucs2(const char *src, uint32_t lengt
/* calculate length */
{
const
uint
32_t
char
*
s
,
*
end
;
for
(
s
=
(
const
uint
32_t
char
*
)
src
,
end
=
s
+
length
;
s
<
end
;
chars
++
)
{
const
uint
8_t
*
s
,
*
end
;
for
(
s
=
(
const
uint
8_t
*
)
src
,
end
=
s
+
length
;
s
<
end
;
chars
++
)
{
const
uint32_t
n
=
local__utf8len
(
s
);
if
(
n
==
0
)
return
0
;
...
...
@@ -137,7 +137,7 @@ static FLAC__uint16 *local__convert_utf8_to_ucs2(const char *src, uint32_t lengt
/* convert */
{
const
uint
32_t
char
*
s
=
(
const
uint
32_t
char
*
)
src
;
const
uint
8_t
*
s
=
(
const
uint
8_t
*
)
src
;
FLAC__uint16
*
u
=
out
;
for
(
;
chars
;
chars
--
)
s
+=
local__utf8_to_ucs2
(
s
,
u
++
);
...
...
@@ -200,7 +200,7 @@ static char *local__convert_ucs2_to_utf8(const FLAC__uint16 *src, uint32_t lengt
/* convert */
{
uint
32_t
char
*
u
=
(
uint
32_t
char
*
)
out
;
uint
8_t
*
u
=
(
uint
8_t
*
)
out
;
for
(
;
*
src
;
src
++
)
u
+=
local__ucs2_to_utf8
(
*
src
,
u
);
local__ucs2_to_utf8
(
*
src
,
u
);
...
...
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