diff options
Diffstat (limited to 'filter/filec.c')
-rw-r--r-- | filter/filec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filter/filec.c b/filter/filec.c index 5ea3c75a..4388b48a 100644 --- a/filter/filec.c +++ b/filter/filec.c @@ -276,6 +276,12 @@ fz_seek(fz_file *f, int ofs, int whence) return ofs; } + if (whence == 1) + { + ofs = fz_tell(f) + ofs; + whence = 0; + } + t = lseek(f->fd, ofs, whence); if (t == -1) { |