summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Holgate <matt@emobix.co.uk>2014-06-16 14:37:32 +0100
committerMatt Holgate <matt@emobix.co.uk>2014-06-16 15:16:47 +0100
commit77315e7139a9b412ab53a7d00cd0b019bd44b497 (patch)
treea25b415349527225b149e267e0abfa709e97494d
parentb2f096de23e5341fbbcd7c290f3a144423741906 (diff)
downloadmupdf-77315e7139a9b412ab53a7d00cd0b019bd44b497.tar.xz
Fix a fatal compiler warning when building with the latest version of the Android NDK
(security issue because a variable is used as a format string with no parameters).
-rw-r--r--source/pdf/pdf-op-run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c
index 2bea94b7..da881b2e 100644
--- a/source/pdf/pdf-op-run.c
+++ b/source/pdf/pdf-op-run.c
@@ -1729,7 +1729,7 @@ run_xobject(pdf_csi *csi, void *state, pdf_obj *resources, pdf_xobject *xobj, co
/* Rethrow postponed errors */
if (errmess[0])
- fz_throw(ctx, FZ_ERROR_GENERIC, errmess);
+ fz_throw(ctx, FZ_ERROR_GENERIC, "%s", errmess);
}
static void pdf_run_BDC(pdf_csi *csi, void *state)