diff --git a/src/format.h b/src/format.h index 81a92421..ed55efc1 100644 --- a/src/format.h +++ b/src/format.h @@ -40,11 +40,6 @@ typedef struct _format_plugin_tag char *format_description; - /* set this is the data format has a header that - ** we must send before regular data - */ - int has_predata; - refbuf_t *(*get_buffer)(struct source_tag *); int (*write_buf_to_client)(struct _format_plugin_tag *format, client_t *client); void (*write_buf_to_file)(struct source_tag *source, refbuf_t *refbuf); diff --git a/src/source.c b/src/source.c index 5fee1aa5..58a7a51b 100644 --- a/src/source.c +++ b/src/source.c @@ -813,10 +813,10 @@ static void _parse_audio_info (source_t *source, const char *s) } if (len) { - char name[100], value[100]; + char name[100], value[200]; char *esc; - sscanf (start, "%199[^=]=%199[^;\r\n]", name, value); + sscanf (start, "%99[^=]=%199[^;\r\n]", name, value); esc = util_url_unescape (value); if (esc) { diff --git a/src/xslt.c b/src/xslt.c index 6970b659..50be1dfd 100644 --- a/src/xslt.c +++ b/src/xslt.c @@ -100,7 +100,7 @@ static int evict_cache_entry() { return oldest; } -static xsltStylesheetPtr xslt_get_stylesheet(char *fn) { +static xsltStylesheetPtr xslt_get_stylesheet(const char *fn) { int i; int empty = -1; struct stat file; @@ -147,7 +147,7 @@ static xsltStylesheetPtr xslt_get_stylesheet(char *fn) { return cache[i].stylesheet; } -void xslt_transform(xmlDocPtr doc, char *xslfilename, client_t *client) +void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client) { xmlOutputBufferPtr outputBuffer; xmlDocPtr res; diff --git a/src/xslt.h b/src/xslt.h index 8ad54766..a88938a4 100644 --- a/src/xslt.h +++ b/src/xslt.h @@ -34,7 +34,7 @@ #include "stats.h" -void xslt_transform(xmlDocPtr doc, char *xslfilename, client_t *client); +void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client); void xslt_initialize(); void xslt_shutdown();