1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

fix possible crash

svn path=/icecast/trunk/icecast/; revision=13561
This commit is contained in:
Karl Heyes 2007-08-16 23:03:03 +00:00
parent 3910d1caf9
commit bd266785ad

View File

@ -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);