mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix lack of null terminator in audio info/stats stuff.
svn path=/trunk/icecast/; revision=4512
This commit is contained in:
parent
5457dd83f0
commit
35e22a005a
@ -685,6 +685,7 @@ static int _parse_audio_info(source_t *source, char *s)
|
|||||||
if (pvar) {
|
if (pvar) {
|
||||||
variable = (char *)malloc(pvar-token+1);
|
variable = (char *)malloc(pvar-token+1);
|
||||||
strncpy(variable, token, pvar-token);
|
strncpy(variable, token, pvar-token);
|
||||||
|
variable[pvar-token] = 0;
|
||||||
pvar++;
|
pvar++;
|
||||||
if (strlen(pvar)) {
|
if (strlen(pvar)) {
|
||||||
value = util_url_unescape(pvar);
|
value = util_url_unescape(pvar);
|
||||||
|
Loading…
Reference in New Issue
Block a user