From 17b1e1a7bfd89401cf46eb0c410a42158ffbd8eb Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 1 May 2010 19:31:44 +0200 Subject: [PATCH] Fix size_t in snprintf() --- src/httpd_daap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 0866d9bf..1101514c 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -2329,7 +2329,7 @@ daap_reply_extra_data(struct evhttp_request *req, struct evbuffer *evbuf, char * evhttp_remove_header(req->output_headers, "Content-Type"); evhttp_add_header(req->output_headers, "Content-Type", "image/png"); - snprintf(clen, sizeof(clen), "%ld", EVBUFFER_LENGTH(evbuf)); + snprintf(clen, sizeof(clen), "%ld", (long)EVBUFFER_LENGTH(evbuf)); evhttp_add_header(req->output_headers, "Content-Length", clen); evhttp_send_reply(req, HTTP_OK, "OK", evbuf);