aboutsummaryrefslogtreecommitdiffstats
path: root/main/imlib2/libpng14.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/imlib2/libpng14.patch')
-rw-r--r--main/imlib2/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/imlib2/libpng14.patch b/main/imlib2/libpng14.patch
new file mode 100644
index 0000000000..0409228401
--- /dev/null
+++ b/main/imlib2/libpng14.patch
@@ -0,0 +1,12 @@
+diff -Naur imlib2-1.4.2-orig/src/modules/loaders/loader_png.c imlib2-1.4.2/src/modules/loaders/loader_png.c
+--- imlib2-1.4.2-orig/src/modules/loaders/loader_png.c 2010-01-19 03:37:21.000000000 -0500
++++ imlib2-1.4.2/src/modules/loaders/loader_png.c 2010-01-19 03:38:51.000000000 -0500
+@@ -38,7 +38,7 @@
+
+ /* if we haven't read the header before, set the header data */
+ fread(buf, 1, PNG_BYTES_TO_CHECK, f);
+- if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
++ if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
+ {
+ fclose(f);
+ return 0;