From 232595c20905fa9256411fd263f4884d04664de0 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 28 May 2011 18:15:05 +0100 Subject: [PATCH] Fix image decompression --- src/graphics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics.c b/src/graphics.c index 69d689e6c..7192de9d4 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -97,6 +97,7 @@ pixel *ptif_unpack(void *datain, int size, int *w, int *h){ width = data[4]|(data[5]<<8); height = data[6]|(data[7]<<8); + i = (width*height)*3; undata = calloc(1, (width*height)*3); red_chan = calloc(1, width*height); green_chan = calloc(1, width*height);