Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: increase buffers for disposition
  • Loading branch information
perexg committed Jul 6, 2015
1 parent c76e53f commit a7082af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/webui.c
Expand Up @@ -1160,7 +1160,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
char *basename;
char *str, *str0;
char range_buf[255];
char disposition[256];
char disposition[512];
off_t content_len, chunk;
intmax_t file_start, file_end;
void *tcp_id;
Expand Down Expand Up @@ -1205,7 +1205,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
if (basename) {
basename++; /* Skip '/' */
str0 = intlconv_utf8safestr(intlconv_charset_id("ASCII", 1, 1),
basename, strlen(basename) * 2);
basename, strlen(basename) * 3);
htsbuf_queue_init(&q, 0);
htsbuf_append_and_escape_url(&q, basename);
str = htsbuf_to_string(&q);
Expand Down

0 comments on commit a7082af

Please sign in to comment.