Correctly terminate stream_title.

This caused random data to be send via icy-server if the played
song had no tags.
This commit is contained in:
Qball Cow 2010-09-08 13:19:59 +02:00
parent 589bb54111
commit 4a7abc9d44
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

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

View File

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