summaryrefslogtreecommitdiff
path: root/extra/imlib/libpng14.patch
blob: 2cc174e29cc719b4f2a766a132ed9251fd2c9405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur imlib-1.9.15-orig/Imlib/load.c imlib-1.9.15/Imlib/load.c
--- imlib-1.9.15-orig/Imlib/load.c	2010-01-18 20:58:27.000000000 -0500
+++ imlib-1.9.15/Imlib/load.c	2010-01-18 21:02:04.000000000 -0500
@@ -1619,7 +1619,7 @@
     return 0;
   fread(buf, 1, 8, f);
   rewind(f);
-  return (int)png_check_sig(buf, 8);
+  return (int)png_sig_cmp(buf, 0, 8)==0;
 #else
   return 0;
 #endif