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

[email protected] ("Nuno Lopes")
Newsgroups php.gd.cvs
Message-ID <014501c77496$0a854110$0100a8c0@pc07653>
> 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
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.