summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfextract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfextract.c b/apps/pdfextract.c
index 5c714d41..2bead4c5 100644
--- a/apps/pdfextract.c
+++ b/apps/pdfextract.c
@@ -46,7 +46,7 @@ static void saveimage(fz_obj *obj, int num, int gen)
if (error)
die(error);
- error = pdf_loadimage(&img, xref, obj);
+ error = pdf_loadimage(&img, xref, ref);
if (error)
die(error);