opnsense-ports/graphics/mhgui/files/patch-src-ImageData.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
391 B
C++

--- src/ImageData.cpp.orig 2007-12-12 22:07:21.000000000 +0100
+++ src/ImageData.cpp 2010-03-29 09:29:18.000000000 +0200
@@ -395,7 +395,7 @@
/* Check for the 8-byte signature */
fread(sig, 1, 8, infile);
- if (!png_check_sig((unsigned char *) sig, 8))
+ if (png_sig_cmp((unsigned char *) sig, 0, 8))
{
fclose(infile);
return false; // seems not to be a valid png file