From bd266785add41e39e6bd3d6b2e711f221db76463 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Thu, 16 Aug 2007 23:03:03 +0000 Subject: [PATCH] fix possible crash svn path=/icecast/trunk/icecast/; revision=13561 --- src/format_mp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format_mp3.c b/src/format_mp3.c index 0ef852a3..8cfabe19 100644 --- a/src/format_mp3.c +++ b/src/format_mp3.c @@ -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);