summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/gd/files/gd-2.0.35-libpng14.patch')
-rw-r--r--media-libs/gd/files/gd-2.0.35-libpng14.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-libs/gd/files/gd-2.0.35-libpng14.patch b/media-libs/gd/files/gd-2.0.35-libpng14.patch
new file mode 100644
index 000000000000..46e621e7755a
--- /dev/null
+++ b/media-libs/gd/files/gd-2.0.35-libpng14.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/305101
+http://repos.archlinux.org/wsvn/packages/gd/trunk/libpng14.patch
+
+patch in upstream repo already
+
+--- gd_png.c
++++ gd_png.c
+@@ -149,7 +149,7 @@
+ return NULL;
+ }
+
+- if (!png_check_sig (sig, 8)) { /* bad signature */
++ if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
+ return NULL; /* bad signature */
+ }
+