diff options
Diffstat (limited to 'content/handlers/html/html.c')
-rw-r--r-- | content/handlers/html/html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index 4ffdb396a..a7fea6dfe 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -1114,8 +1114,8 @@ html_process_encoding_change(struct content *c, dom_hubbub_parser_params parse_params; dom_hubbub_error error; const char *encoding; - const char *source_data; - unsigned long source_size; + const uint8_t *source_data; + size_t source_size; /* Retrieve new encoding */ encoding = dom_hubbub_parser_get_encoding(html->parser, @@ -1181,7 +1181,7 @@ html_process_encoding_change(struct content *c, * it cannot be changed again. */ error = dom_hubbub_parser_parse_chunk(html->parser, - (const uint8_t *)source_data, + source_data, source_size); return libdom_hubbub_error_to_nserror(error); |