From 35e22a005ada725a2ed7f66136a47dbfc6dc41a9 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 19 Mar 2003 07:55:42 +0000 Subject: [PATCH] Fix lack of null terminator in audio info/stats stuff. svn path=/trunk/icecast/; revision=4512 --- src/source.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/source.c b/src/source.c index d9d158e1..191783e0 100644 --- a/src/source.c +++ b/src/source.c @@ -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);