summaryrefslogtreecommitdiff
path: root/test/pdfdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pdfdebug.c')
-rw-r--r--test/pdfdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdfdebug.c b/test/pdfdebug.c
index 1009849f..bf3de918 100644
--- a/test/pdfdebug.c
+++ b/test/pdfdebug.c
@@ -94,7 +94,7 @@ void copystream(pdf_xref *xref, fz_obj *stream, int ofs)
error = fz_newnullfilter(&filter, len);
if (error) fz_abort(error);
- fz_seek(xref->file, ofs);
+ fz_seek(xref->file, ofs, 0);
error = fz_pushfilter(xref->file, filter);
if (error) fz_abort(error);