From: Jaroslav Kysela Date: Wed, 16 Mar 2016 08:10:12 +0000 (+0100) Subject: rtsp: fix compilation X-Git-Tag: v4.2.1~853 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac48dc24fe7374a32efedaaf4d6dfa9fe615f3e3;p=thirdparty%2Ftvheadend.git rtsp: fix compilation --- diff --git a/src/rtsp.c b/src/rtsp.c index 29f010997..d08125ae8 100644 --- a/src/rtsp.c +++ b/src/rtsp.c @@ -56,7 +56,7 @@ rtsp_send_ext( http_client_t *hc, http_cmd_t cmd, } strncpy(buf_body, body, sizeof(buf_body)); strncat(buf_body, "\r\n", 2); - snprintf(buf2, sizeof(buf2), "%lu", size + 2); + snprintf(buf2, sizeof(buf2), "%"PRIu64, (uint64_t)(size + 2)); http_arg_set(hdr, "Content-Length", buf2); }