diff options
author | pajoye <none@none> | 2007-01-11 20:58:04 +0000 |
---|---|---|
committer | pajoye <none@none> | 2007-01-11 20:58:04 +0000 |
commit | fb4a0fca12e97b0efdd6090a1511b2c7da1d328f (patch) | |
tree | d029f2cf6c981dd83a77a0106045b1ebfa18f4d0 /src/gd_gif_in.c | |
parent | 4c149f8d7b321acddd9b607ec0b7194ee8a32e9a (diff) | |
download | libgd-fb4a0fca12e97b0efdd6090a1511b2c7da1d328f.tar.gz |
- #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
Diffstat (limited to 'src/gd_gif_in.c')
-rw-r--r-- | src/gd_gif_in.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gd_gif_in.c b/src/gd_gif_in.c index 24ee324..1106b27 100644 --- a/src/gd_gif_in.c +++ b/src/gd_gif_in.c @@ -265,13 +265,13 @@ DoExtension(gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP) 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; |