From 992c7c6cf15813760f4582682f5a48daba5d4239 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Oct 2017 14:06:22 +0200 Subject: Some more consts. --- source/fitz/xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/xml.c b/source/fitz/xml.c index 989d65b6..bcd3179c 100644 --- a/source/fitz/xml.c +++ b/source/fitz/xml.c @@ -588,9 +588,9 @@ parse_attribute_value: return "end of data in attribute value"; } -static char *convert_to_utf8(fz_context *doc, unsigned char *s, size_t n, int *dofree) +static char *convert_to_utf8(fz_context *doc, const unsigned char *s, size_t n, int *dofree) { - unsigned char *e = s + n; + const unsigned char *e = s + n; char *dst, *d; int c; -- cgit v1.2.3