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.
This commit is contained in:
Manish Singh 2005-04-09 10:10:17 +00:00 committed by Manish Singh
parent 361f8a6361
commit 1996db3040
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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>
* plug-ins/winicon/icosave.c: implement color counting without

View File

@ -600,8 +600,7 @@ GetCode (FILE *fd,
{
static unsigned char buf[280];
static int curbit, lastbit, done, last_byte;
int i, j, ret;
unsigned char count;
int i, j, ret, count;
if (flag)
{