Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: fix the range variable formats in page_dvrfile()
  • Loading branch information
perexg committed Sep 17, 2014
1 parent 54dd7dd commit e5137f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/webui.c
Expand Up @@ -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);
Expand Down

0 comments on commit e5137f8

Please sign in to comment.