summaryrefslogtreecommitdiff
blob: ad689e29d739d53e93cf600ec8e1eddab8717e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
http://bugs.gentoo.org/show_bug.cgi?id=308731

--- src/loadpng.c
+++ src/loadpng.c
@@ -55,7 +55,7 @@ unsigned char * load_png_file( const cha
   }
   /* ensure that we opened a PNG file */
   fread( header, 1, 8, fd );
-  if ( ! png_check_sig( header, 8 ) ) {
+  if ( png_sig_cmp( header, 0, 8 ) ) {
     fclose(fd);
     fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file);
     return NULL;