summaryrefslogtreecommitdiff
path: root/HTMLtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'HTMLtree.c')
-rw-r--r--HTMLtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/HTMLtree.c b/HTMLtree.c
index 5724540..9a5d35f 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -170,7 +170,7 @@ htmlSetMetaEncoding(htmlDocPtr doc, const xmlChar *encoding) {
if (encoding != NULL) {
snprintf(newcontent, sizeof(newcontent), "text/html; charset=%s",
- encoding);
+ (char *)encoding);
newcontent[sizeof(newcontent) - 1] = 0;
}