aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwmf/libpng14.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 10:16:09 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 10:16:09 +0000
commitf70f846231ba36b7b95a837e526f865c2a272b37 (patch)
treeda8f08d0c6b6240d8204d7064c43ae57a8689749 /community/libwmf/libpng14.patch
parent37f740f2cae02c838be853145ee91666baead2af (diff)
downloadaports-f70f846231ba36b7b95a837e526f865c2a272b37.tar.bz2
aports-f70f846231ba36b7b95a837e526f865c2a272b37.tar.xz
community/libwmf: moved from testing
Diffstat (limited to 'community/libwmf/libpng14.patch')
-rw-r--r--community/libwmf/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/libwmf/libpng14.patch b/community/libwmf/libpng14.patch
new file mode 100644
index 0000000000..3d38c717aa
--- /dev/null
+++ b/community/libwmf/libpng14.patch
@@ -0,0 +1,12 @@
+diff -Nur libwmf-0.2.8.4.orig/src/extra/gd/gd_png.c libwmf-0.2.8.4/src/extra/gd/gd_png.c
+--- libwmf-0.2.8.4.orig/src/extra/gd/gd_png.c 2005-07-27 23:35:06.000000000 +0300
++++ libwmf-0.2.8.4/src/extra/gd/gd_png.c 2010-01-17 01:33:58.000000000 +0200
+@@ -136,7 +136,7 @@
+ /* first do a quick check that the file really is a PNG image; could
+ * have used slightly more general png_sig_cmp() function instead */
+ gdGetBuf (sig, 8, infile);
+- if (!png_check_sig (sig, 8))
++ if (png_sig_cmp (sig, 0, 8))
+ return NULL; /* bad signature */
+
+ #ifndef PNG_SETJMP_NOT_SUPPORTED