summaryrefslogtreecommitdiffstats
path: root/testing/libwmf/libpng14.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-03-09 14:02:26 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-03-09 14:02:26 +0000
commita9274b1b55381553f3a783e94f6339cb35c2a24f (patch)
treed23ff8353075fac425495eda3a12513cd60447dc /testing/libwmf/libpng14.patch
parentd8677330ba1d1dd91d84e0cd8e546fda1f8edc6d (diff)
parent139c3269bcacee129a2e47cbd05d31aeec798d00 (diff)
downloadaports-a9274b1b55381553f3a783e94f6339cb35c2a24f.tar.bz2
aports-a9274b1b55381553f3a783e94f6339cb35c2a24f.tar.xz
Merge branch 'master' of git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/libwmf/libpng14.patch')
-rw-r--r--testing/libwmf/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/libwmf/libpng14.patch b/testing/libwmf/libpng14.patch
new file mode 100644
index 000000000..3d38c717a
--- /dev/null
+++ b/testing/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