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

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;