summaryrefslogtreecommitdiff
path: root/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
blob: effef6d9d0693f719c25b3ba5bc4b4fbd815fe8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
http://aur.archlinux.org/packages.php?ID=10325

--- a/src/rwpng.c
+++ b/src/rwpng.c
@@ -80,7 +80,7 @@
      * have used slightly more general png_sig_cmp() function instead */
 
     fread(sig, 1, 8, infile);
-    if (!png_check_sig(sig, 8)) {
+    if (png_sig_cmp(sig, 0, 8)) {
         mainprog_ptr->retval = 21;   /* bad signature */
         return mainprog_ptr->retval;
     }