From 4d125739c1ac42d629360a7e2700410e788028c7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 4 Apr 2011 01:06:30 +0200 Subject: Change how files are opened with fz_openfd/file/filew. --- xps/xps_tiff.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'xps') diff --git a/xps/xps_tiff.c b/xps/xps_tiff.c index 8aabb084..c4fdbfcd 100644 --- a/xps/xps_tiff.c +++ b/xps/xps_tiff.c @@ -358,7 +358,6 @@ xps_expand_tiff_colormap(struct tiff *tiff) static int xps_decode_tiff_strips(struct tiff *tiff) { - fz_buffer buf; fz_stream *stm; int error; @@ -454,14 +453,8 @@ xps_decode_tiff_strips(struct tiff *tiff) for (i = 0; i < rlen; i++) rp[i] = bitrev[rp[i]]; - /* create a fz_buffer on the stack */ - buf.refs = 2; - buf.data = rp; - buf.len = rlen; - buf.cap = rlen; - /* the strip decoders will close this */ - stm = fz_openbuffer(&buf); + stm = fz_openmemory(rp, rlen); switch (tiff->compression) { -- cgit v1.2.3