From d91e333e2fe42f83301ecb7311cfe6e25868fb78 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 11 Jan 2013 16:00:27 +0000 Subject: Bug 693519: Replace char * with const char * in open document. Simple patch to replace const char * with char *. I made the patch myself, but I suspect it's extremely close to the one submitted by Evgeniy A Dushistov, who reported the bug - many thanks! --- xps/muxps.h | 2 +- xps/xps_zip.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xps') diff --git a/xps/muxps.h b/xps/muxps.h index 007f4452..86e50cfb 100644 --- a/xps/muxps.h +++ b/xps/muxps.h @@ -19,7 +19,7 @@ typedef struct xps_page_s xps_page; filename: a path to a file as it would be given to open(2). */ -xps_document *xps_open_document(fz_context *ctx, char *filename); +xps_document *xps_open_document(fz_context *ctx, const char *filename); /* xps_open_document_with_stream: Opens a document. diff --git a/xps/xps_zip.c b/xps/xps_zip.c index fa52dec1..f5ca0eb7 100644 --- a/xps/xps_zip.c +++ b/xps/xps_zip.c @@ -553,7 +553,7 @@ xps_has_part(xps_document *doc, char *partname) } static xps_document * -xps_open_document_with_directory(fz_context *ctx, char *directory) +xps_open_document_with_directory(fz_context *ctx, const char *directory) { xps_document *doc; @@ -600,7 +600,7 @@ xps_open_document_with_stream(fz_context *ctx, fz_stream *file) } xps_document * -xps_open_document(fz_context *ctx, char *filename) +xps_open_document(fz_context *ctx, const char *filename) { char buf[2048]; fz_stream *file; -- cgit v1.2.3