mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-10-27 05:10:11 -04:00
small fixes
svn path=/icecast/trunk/icecast/; revision=8596
This commit is contained in:
parent
1c5f23673b
commit
6c4c02d482
@ -23,9 +23,9 @@
|
||||
<p>If icecast has been built with YP support, then the following configuration options control the YP directory settings:</p>
|
||||
<pre>
|
||||
<directory>
|
||||
<yp-url-timeout>15<yp-url-timeout>
|
||||
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi<yp-url>
|
||||
<directory>
|
||||
<yp-url-timeout>15</yp-url-timeout>
|
||||
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
|
||||
</directory>
|
||||
</pre>
|
||||
<p>Multiple directory XML chunks can be specified in order to be listed in multiple directories.</p>
|
||||
<br />
|
||||
|
@ -651,7 +651,7 @@ static void command_show_listeners(client_t *client, source_t *source,
|
||||
xmlNewChild(listenernode, NULL, "UserAgent", "Unknown");
|
||||
}
|
||||
memset(buf, '\000', sizeof(buf));
|
||||
snprintf(buf, sizeof(buf)-1, "%ld", now - current->con->con_time);
|
||||
snprintf(buf, sizeof(buf), "%lu", (unsigned long)(now - current->con->con_time));
|
||||
xmlNewChild(listenernode, NULL, "Connected", buf);
|
||||
memset(buf, '\000', sizeof(buf));
|
||||
snprintf(buf, sizeof(buf)-1, "%lu", current->con->id);
|
||||
|
@ -241,7 +241,7 @@ static void update_comments (source_t *source)
|
||||
char *title = ogg_info->title;
|
||||
char *artist = ogg_info->artist;
|
||||
char *metadata = NULL;
|
||||
unsigned int len = 0;
|
||||
unsigned int len = 1; /* space for the nul byte at least */
|
||||
ogg_codec_t *codec;
|
||||
char codec_names [100] = "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user