- fix check, so png is detected.

Submitted by:	tron@freenode
This commit is contained in:
Dirk Meyer 2010-03-28 09:34:32 +00:00
parent 7a588de579
commit 37b8b6d26b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251615
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= gd PORTNAME= gd
PORTVERSION= 2.0.35 PORTVERSION= 2.0.35
PORTREVISION?= 6 PORTREVISION?= 7
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES+= graphics CATEGORIES+= graphics
MASTER_SITES= http://www.libgd.org/releases/ MASTER_SITES= http://www.libgd.org/releases/

View file

@ -5,7 +5,7 @@
} }
- if (!png_check_sig (sig, 8)) { /* bad signature */ - if (!png_check_sig (sig, 8)) { /* bad signature */
+ if (!png_sig_cmp (sig, 0, 8)) { /* bad signature */ + if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
return NULL; /* bad signature */ return NULL; /* bad signature */
} }