aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/compiz/files/patch-plugins_png.c
blob: 06658d10fd1a6a0199f394fae503bf0d48ee7309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

--- plugins/png.c.orig	2010-04-01 13:17:02.000000000 +0300
+++ plugins/png.c	2010-04-01 13:17:34.000000000 +0300
@@ -167,7 +167,7 @@
     Bool	  status;
 
     sig_bytes = fread (png_sig, 1, PNG_SIG_SIZE, file);
-    if (png_check_sig (png_sig, sig_bytes) == 0)
+    if (!png_sig_cmp (png_sig, 1, sig_bytes) == 0)
 	return FALSE;
 
     png = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
@@ -218,7 +218,7 @@
     Bool		status;
 
     memcpy (png_sig, buffer, PNG_SIG_SIZE);
-    if (png_check_sig (png_sig, PNG_SIG_SIZE) == 0)
+    if (!png_sig_cmp (png_sig, 1, PNG_SIG_SIZE) == 0)
 	return FALSE;
 
     png = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);