webui: fix the range variable formats in page_dvrfile()
This commit is contained in:
parent
54dd7ddc01
commit
e5137f8ef8
1 changed files with 2 additions and 2 deletions
|
@ -1223,8 +1223,8 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
|
|||
|
||||
content_len = file_end - file_start+1;
|
||||
|
||||
sprintf(range_buf, "bytes %"PRId64"-%"PRId64"/%"PRId64"",
|
||||
file_start, file_end, st.st_size);
|
||||
sprintf(range_buf, "bytes %jd-%jd/%zd",
|
||||
file_start, file_end, (size_t)st.st_size);
|
||||
|
||||
if(file_start > 0)
|
||||
lseek(fd, file_start, SEEK_SET);
|
||||
|
|
Loading…
Add table
Reference in a new issue