summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-10-05 10:49:31 +0200
committerTor Andersson <tor@ghostscript.com>2004-10-05 10:49:31 +0200
commit422c3dfdb4f8d4ab61449001eff1427bf8fbff36 (patch)
treecd4f3c4274881cedd9131e85b06ac26ed0cd2d88 /filter
parent9ce9759c580d5522ad2d3812b26aff49644d8881 (diff)
downloadmupdf-422c3dfdb4f8d4ab61449001eff1427bf8fbff36.tar.xz
fixed fz_tell bug in write mode
Diffstat (limited to 'filter')
-rw-r--r--filter/filec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filec.c b/filter/filec.c
index fc5599e1..8402401f 100644
--- a/filter/filec.c
+++ b/filter/filec.c
@@ -302,6 +302,6 @@ fz_tell(fz_file *f)
if (f->mode == O_RDONLY)
return t - (f->out->wp - f->out->rp);
else
- return t - (f->in->wp - f->in->rp);
+ return t + (f->in->wp - f->in->rp);
}