]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: dvrfile - fix the wrong total size - range header, fixes #3135
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Oct 2015 07:48:43 +0000 (09:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 Oct 2015 07:48:43 +0000 (09:48 +0200)
src/webui/webui.c

index 0d56c06d06d5e363b453ad28ecc72443ea3c85a2..32ff121ff65b32773b0f17f0de4e437ea7c7e85a 100644 (file)
@@ -1552,8 +1552,8 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
 
   content_len = file_end - file_start+1;
   
-  sprintf(range_buf, "bytes %jd-%jd/%zd",
-    file_start, file_end, (size_t)st.st_size);
+  sprintf(range_buf, "bytes %jd-%jd/%jd",
+    file_start, file_end, (intmax_t)st.st_size);
 
   if(file_start > 0)
     if (lseek(fd, file_start, SEEK_SET) != file_start) {