diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/directory.c | 8 | ||||
-rw-r--r-- | render/html.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/render/directory.c b/render/directory.c index 754449df5..1363ad251 100644 --- a/render/directory.c +++ b/render/directory.c @@ -103,7 +103,8 @@ bool directory_convert(struct content *c, int width, int height) { #ifndef WITH_HUBBUB htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0); #else - hubbub_parser_parse_chunk(c->data.html.parser, buffer, strlen(buffer)); + hubbub_parser_parse_chunk(c->data.html.parser, + (uint8_t *) buffer, strlen(buffer)); #endif res = url_parent(c->url, &up); @@ -117,7 +118,8 @@ bool directory_convert(struct content *c, int width, int height) { strlen(buffer), 0); #else hubbub_parser_parse_chunk(c->data.html.parser, - buffer, strlen(buffer)); + (uint8_t *) buffer, + strlen(buffer)); #endif } free(up); @@ -139,7 +141,7 @@ bool directory_convert(struct content *c, int width, int height) { htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0); #else hubbub_parser_parse_chunk(c->data.html.parser, - buffer, strlen(buffer)); + (uint8_t *) buffer, strlen(buffer)); #endif } closedir(parent); diff --git a/render/html.c b/render/html.c index 7df0816e6..b15c7eb93 100644 --- a/render/html.c +++ b/render/html.c @@ -600,7 +600,8 @@ bool html_process_data(struct content *c, char *data, unsigned int size) for (x = 0; x + CHUNK <= size; x += CHUNK) { #ifdef WITH_HUBBUB err = hubbub_parser_parse_chunk( - c->data.html.parser, data + x, CHUNK); + c->data.html.parser, + (uint8_t *) data + x, CHUNK); if (err == HUBBUB_ENCODINGCHANGE) { goto encoding_change; } @@ -612,7 +613,8 @@ bool html_process_data(struct content *c, char *data, unsigned int size) #ifdef WITH_HUBBUB err = hubbub_parser_parse_chunk( - c->data.html.parser, data + x, (size - x)); + c->data.html.parser, + (uint8_t *) data + x, (size - x)); if (err == HUBBUB_ENCODINGCHANGE) { goto encoding_change; } |