summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-05-28 17:15:05 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-05-28 17:15:05 (GMT)
commit232595c20905fa9256411fd263f4884d04664de0 (patch)
tree66ebfbeac1063da02e1c94d40cd97282f606db61 /src
parent2795970639d0dc6bf243b119a6d7b266f2baa67d (diff)
downloadpowder-232595c20905fa9256411fd263f4884d04664de0.zip
powder-232595c20905fa9256411fd263f4884d04664de0.tar.gz
Fix image decompression
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 69d689e..7192de9 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);