freebsd-ports/japanese/ptex/files/patch-libs-gd-gd_png.c
2010-03-30 03:39:28 +00:00

12 lines
452 B
C

--- libs/gd/gd_png.c.orig 2004-10-28 20:09:52.000000000 +0200
+++ libs/gd/gd_png.c 2010-03-30 05:32:28.000000000 +0200
@@ -143,7 +143,7 @@
/* first do a quick check that the file really is a PNG image; could
* have used slightly more general png_sig_cmp() function instead */
gdGetBuf (sig, 8, infile);
- if (!png_check_sig (sig, 8))
+ if (png_sig_cmp (sig, 0, 8))
return NULL; /* bad signature */
#ifndef PNG_SETJMP_NOT_SUPPORTED