Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
350c524c
Commit
350c524c
authored
Feb 10, 2004
by
Michael Smith
Browse files
I Hate String Handling In C.
svn path=/trunk/icecast/; revision=5818
parent
3d9d45c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/format_mp3.c
View file @
350c524c
...
...
@@ -334,10 +334,15 @@ static int format_mp3_get_buffer(format_plugin_t *self, char *data,
int
stringlength
;
state
->
metadata
=
malloc
(
state
->
metadata_length
-
1
5
+
1
);
1
2
);
memcpy
(
state
->
metadata
,
state
->
metadata_buffer
+
13
,
state
->
metadata_length
-
15
);
state
->
metadata_length
-
13
);
/* Make sure we've got a null-terminator of some
sort */
state
->
metadata
[
state
->
metadata_length
-
13
]
=
0
;
/* Now figure out the _right_ one */
stringlength
=
strlen
(
state
->
metadata
);
if
(
stringlength
>
2
)
state
->
metadata
[
stringlength
-
2
]
=
0
;
...
...
Write
Preview
Supports
Markdown
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