Re: [GD-CVS] cvs: gd(GD_2_0) /libgd gd_gif_in.c

From: Date: Sun, 01 Apr 2007 19:43:37 +0000
Subject: Re: [GD-CVS] cvs: gd(GD_2_0) /libgd gd_gif_in.c
References: 1  Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-159@lists.php.net to get a copy of this message
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_gif_in.c?r1=1.5.2.3&r2=1.5.2.4&diff_format=u Index: gd/libgd/gd_gif_in.c diff -u gd/libgd/gd_gif_in.c:1.5.2.3 gd/libgd/gd_gif_in.c:1.5.2.4 --- gd/libgd/gd_gif_in.c:1.5.2.3 Thu Mar 8 19:56:38 2007 +++ gd/libgd/gd_gif_in.c Sat Mar 31 14:26:46 2007 @@ -143,21 +143,26 @@
       if (strncmp((char *)buf,"GIF",3) != 0) {
return 0; } + if (strncmp((char *)buf+3, "87a", 3) != 0) { + gif87a = 1; + } else if (strncmp((char *)buf+3, "89a", 3) != 0) { + gif87a = 0; + } else { + return 0; + }
I think you meant strncmp() == 0 there. Nuno

« previous php.gd.cvs (#159) next »