Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: dvrfile - fix the wrong total size - range header, fixes #3135
  • Loading branch information
perexg committed Oct 7, 2015
1 parent 5355464 commit fdc9322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/webui.c
Expand Up @@ -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) {
Expand Down

0 comments on commit fdc9322

Please sign in to comment.