diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-10-11 14:03:39 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-10-12 15:18:06 +0200 |
commit | a94e86a03d3059b2bd7f48b9bbc436253bd2d94e (patch) | |
tree | 8b720eca2e0ca5c6bd0d7c9a0e7a849606da4007 /include | |
parent | 0e03d243af21da13af66af6c688300ff7d72ade6 (diff) | |
download | mupdf-a94e86a03d3059b2bd7f48b9bbc436253bd2d94e.tar.xz |
Make fz_open_memory take a const buffer.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |