From a94e86a03d3059b2bd7f48b9bbc436253bd2d94e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Oct 2017 14:03:39 +0200 Subject: Make fz_open_memory take a const buffer. --- include/mupdf/fitz/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h index f9cf755c..be59a7a0 100644 --- a/include/mupdf/fitz/stream.h +++ b/include/mupdf/fitz/stream.h @@ -68,7 +68,7 @@ fz_stream *fz_open_file_ptr(fz_context *ctx, FILE *file); Returns pointer to newly created stream. May throw exceptions on failure to allocate. */ -fz_stream *fz_open_memory(fz_context *ctx, unsigned char *data, size_t len); +fz_stream *fz_open_memory(fz_context *ctx, const unsigned char *data, size_t len); /* fz_open_buffer: Open a buffer as a stream. -- cgit v1.2.3