From eb6d84a1a8d56603874c8d7fca14b153001cc24d Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Thu, 23 Mar 2006 04:31:17 +0000 Subject: [project @ 2006-03-23 04:31:17 by rjek] Fix decoding of GIF images with more than 127 colours in them (for nsgtk) svn path=/import/netsurf/; revision=2152 --- image/gifread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image') diff --git a/image/gifread.c b/image/gifread.c index 9d81bb6a7..52aa6254f 100644 --- a/image/gifread.c +++ b/image/gifread.c @@ -78,8 +78,8 @@ static unsigned char *direct; static int maskTbl[16] = {0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff}; static int table[2][(1 << GIF_MAX_LZW)]; -static char stack[(1 << GIF_MAX_LZW) * 2]; -static char *stack_pointer; +static unsigned char stack[(1 << GIF_MAX_LZW) * 2]; +static unsigned char *stack_pointer; static int code_size, set_code_size; static int max_code, max_code_size; static int clear_code, end_code; -- cgit v1.2.3