summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/filec.c6
-rw-r--r--filter/jbig2d.c2
2 files changed, 7 insertions, 1 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)
{
diff --git a/filter/jbig2d.c b/filter/jbig2d.c
index f0022bda..ed54eed3 100644
--- a/filter/jbig2d.c
+++ b/filter/jbig2d.c
@@ -12,7 +12,7 @@
+create the per-page ctx
*/
-#ifdef WIN32 /* Microsoft Visual C+*/
+#ifdef WIN32 /* Microsoft Visual C++ */
typedef signed char int8_t;
typedef short int int16_t;