Commits

pajoye  committed fb4a0fc

- #7, part of the patch required for http://bugs.php.net/bug.php?id=33220
was missing. Thanks to Nuno Lopes for the head up

  • Participants
  • Parent commits 4c149f8

Comments (0)

Files changed (1)

File src/gd_gif_in.c

                if ((buf[0] & 0x1) != 0)
                        *Transparent = buf[3];
 
-               while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) != 0)
+               while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) > 0)
                        ;
                return FALSE;
        default:
                break;
        }
-       while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) != 0)
+       while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) > 0)
                ;
 
        return FALSE;