cvs: gd /libgd gd_gif_in.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1168549084@cvsserver>
pajoye		Thu Jan 11 20:58:04 2007 UTC

  Modified files:              
    /gd/libgd	gd_gif_in.c 
  Log:
  - #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
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_gif_in.c?r1=1.4&r2=1.5&diff_format=u
Index: gd/libgd/gd_gif_in.c
diff -u gd/libgd/gd_gif_in.c:1.4 gd/libgd/gd_gif_in.c:1.5
--- gd/libgd/gd_gif_in.c:1.4	Thu Sep 28 15:22:49 2006
+++ gd/libgd/gd_gif_in.c	Thu Jan 11 20:58:04 2007
@@ -265,13 +265,13 @@
                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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.