Commit 1996db30 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

GetDataBlock returns -1 on error, so count should be an int, not an

2005-04-09  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gifload.c (GetCode): GetDataBlock returns -1 on
        error, so count should be an int, not an unsigned char. Fixes
        bug #173119.
parent 361f8a63
2005-04-09 Manish Singh <yosh@gimp.org>
* plug-ins/common/gifload.c (GetCode): GetDataBlock returns -1 on
error, so count should be an int, not an unsigned char. Fixes
bug #173119.
2005-04-09 Sven Neumann <sven@gimp.org> 2005-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/winicon/icosave.c: implement color counting without * plug-ins/winicon/icosave.c: implement color counting without
......
...@@ -600,8 +600,7 @@ GetCode (FILE *fd, ...@@ -600,8 +600,7 @@ GetCode (FILE *fd,
{ {
static unsigned char buf[280]; static unsigned char buf[280];
static int curbit, lastbit, done, last_byte; static int curbit, lastbit, done, last_byte;
int i, j, ret; int i, j, ret, count;
unsigned char count;
if (flag) if (flag)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment