Commit 6c4c02d4 authored by Karl Heyes's avatar Karl Heyes

small fixes

svn path=/icecast/trunk/icecast/; revision=8596
parent 1c5f2367
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
<p>If icecast has been built with YP support, then the following configuration options control the YP directory settings:</p> <p>If icecast has been built with YP support, then the following configuration options control the YP directory settings:</p>
<pre> <pre>
&lt;directory&gt; &lt;directory&gt;
&lt;yp-url-timeout&gt;15&lt;yp-url-timeout&gt; &lt;yp-url-timeout&gt;15&lt;/yp-url-timeout&gt;
&lt;yp-url&gt;http://dir.xiph.org/cgi-bin/yp-cgi&lt;yp-url&gt; &lt;yp-url&gt;http://dir.xiph.org/cgi-bin/yp-cgi&lt;/yp-url&gt;
&lt;directory&gt; &lt;/directory&gt;
</pre> </pre>
<p>Multiple directory XML chunks can be specified in order to be listed in multiple directories.</p> <p>Multiple directory XML chunks can be specified in order to be listed in multiple directories.</p>
<br /> <br />
......
...@@ -651,7 +651,7 @@ static void command_show_listeners(client_t *client, source_t *source, ...@@ -651,7 +651,7 @@ static void command_show_listeners(client_t *client, source_t *source,
xmlNewChild(listenernode, NULL, "UserAgent", "Unknown"); xmlNewChild(listenernode, NULL, "UserAgent", "Unknown");
} }
memset(buf, '\000', sizeof(buf)); 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); xmlNewChild(listenernode, NULL, "Connected", buf);
memset(buf, '\000', sizeof(buf)); memset(buf, '\000', sizeof(buf));
snprintf(buf, sizeof(buf)-1, "%lu", current->con->id); snprintf(buf, sizeof(buf)-1, "%lu", current->con->id);
......
...@@ -241,7 +241,7 @@ static void update_comments (source_t *source) ...@@ -241,7 +241,7 @@ static void update_comments (source_t *source)
char *title = ogg_info->title; char *title = ogg_info->title;
char *artist = ogg_info->artist; char *artist = ogg_info->artist;
char *metadata = NULL; char *metadata = NULL;
unsigned int len = 0; unsigned int len = 1; /* space for the nul byte at least */
ogg_codec_t *codec; ogg_codec_t *codec;
char codec_names [100] = ""; char codec_names [100] = "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment