1
0
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:
Michael Smith 2003-03-19 07:55:42 +00:00
parent 5457dd83f0
commit 35e22a005a

View File

@ -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;
pvar++;
if (strlen(pvar)) {
value = util_url_unescape(pvar);