Commit bd266785 authored by Karl Heyes's avatar Karl Heyes

fix possible crash

svn path=/icecast/trunk/icecast/; revision=13561
parent 3910d1ca
......@@ -176,7 +176,7 @@ static void filter_shoutcast_metadata (source_t *source, char *metadata, unsigne
metadata++;
if (strncmp (metadata, "StreamTitle='", 13))
break;
if ((end = strstr (metadata, "\';")) == NULL)
if ((end = strstr (metadata+13, "\';")) == NULL)
break;
len = (end - metadata) - 13;
p = calloc (1, len+1);
......
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