From 4a7abc9d44206296587a9e4302e0e1a273aef6e9 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Wed, 8 Sep 2010 13:19:59 +0200 Subject: [PATCH] Correctly terminate stream_title. This caused random data to be send via icy-server if the played song had no tags. --- NEWS | 2 ++ src/icy_server.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 566422cfe..310174a1c 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ ver 0.15.13 (2010/??/??) * output_thread: fix race condition after CANCEL command +* output: + - httpd: fix random data in stream title ver 0.15.12 (2010/07/20) diff --git a/src/icy_server.c b/src/icy_server.c index 486c62c36..50b10c6ca 100644 --- a/src/icy_server.c +++ b/src/icy_server.c @@ -95,6 +95,7 @@ icy_server_metadata_page(const struct tag *tag, ...) gchar stream_title[(1 + 255 - 28) * 16]; // Length + Metadata - // "StreamTitle='';StreamUrl='';" // = 4081 - 28 + stream_title[0] = '\0'; last_item = -1;