]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
rtsp: fix compilation
authorJaroslav Kysela <perex@perex.cz>
Wed, 16 Mar 2016 08:10:12 +0000 (09:10 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 16 Mar 2016 08:10:27 +0000 (09:10 +0100)
src/rtsp.c

index 29f010997cb54dc76061746f6a901b9516acc2e3..d08125ae8b01182ced97ac02e3bac00a6bf6203a 100644 (file)
@@ -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);
   }