summaryrefslogtreecommitdiff
path: root/src/gd_gif_in.c
diff options
context:
space:
mode:
authorpajoye <none@none>2007-01-11 20:58:04 +0000
committerpajoye <none@none>2007-01-11 20:58:04 +0000
commitfb4a0fca12e97b0efdd6090a1511b2c7da1d328f (patch)
treed029f2cf6c981dd83a77a0106045b1ebfa18f4d0 /src/gd_gif_in.c
parent4c149f8d7b321acddd9b607ec0b7194ee8a32e9a (diff)
downloadlibgd-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.c4
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;