diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2006-03-23 04:31:17 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2006-03-23 04:31:17 +0000 |
commit | eb6d84a1a8d56603874c8d7fca14b153001cc24d (patch) | |
tree | 96daa3eb0255f6f5d8057efc58a1deafecc82121 /image/gifread.c | |
parent | c3aff7e09c3c838886b575750149b29958c0f93e (diff) | |
download | netsurf-eb6d84a1a8d56603874c8d7fca14b153001cc24d.tar.gz netsurf-eb6d84a1a8d56603874c8d7fca14b153001cc24d.tar.bz2 |
[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
Diffstat (limited to 'image/gifread.c')
-rw-r--r-- | image/gifread.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |