diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pdfdebug.c | 2 | ||||
-rw-r--r-- | test/showcmap.c | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/test/showcmap.c b/test/showcmap.c index 80575a4c..3e6e5e8e 100644 --- a/test/showcmap.c +++ b/test/showcmap.c @@ -7,7 +7,7 @@ int main(int argc, char **argv) fz_cmap *cmap; fz_file *file; - err = fz_openfile(&file, argv[1], O_RDONLY); + err = fz_openfile(&file, argv[1], FZ_READ); if (err) fz_abort(err); |