Commit 35e22a00 authored by Michael Smith's avatar Michael Smith
Browse files

Fix lack of null terminator in audio info/stats stuff.

svn path=/trunk/icecast/; revision=4512
parent 5457dd83
......@@ -685,6 +685,7 @@ static int _parse_audio_info(source_t *source, char *s)
if (pvar) {
variable = (char *)malloc(pvar-token+1);
strncpy(variable, token, pvar-token);
variable[pvar-token] = 0;
if (strlen(pvar)) {
value = util_url_unescape(pvar);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment