summaryrefslogtreecommitdiff
path: root/community/dillo/libpng14.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/dillo/libpng14.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/dillo/libpng14.patch')
-rw-r--r--community/dillo/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/dillo/libpng14.patch b/community/dillo/libpng14.patch
new file mode 100644
index 000000000..10c45351e
--- /dev/null
+++ b/community/dillo/libpng14.patch
@@ -0,0 +1,12 @@
+diff -upr dillo-2.1.1.orig/src/png.c dillo-2.1.1/src/png.c
+--- dillo-2.1.1.orig/src/png.c 2010-01-23 04:09:50.000000000 +0200
++++ dillo-2.1.1/src/png.c 2010-01-23 04:12:34.000000000 +0200
+@@ -345,7 +345,7 @@ static void Png_write(DilloPng *png, voi
+ return; /* need MORE data */
+ }
+ /* check the image signature - DON'T update ipbufstart! */
+- if (!png_check_sig(png->ipbuf, DATASIZE)) {
++ if (png_sig_cmp(png->ipbuf, 0, DATASIZE)) {
+ /* you lied to me about it being a PNG image */
+ MSG_WARN("\"%s\" is not a PNG file.\n", URL_STR(png->url));
+ png->state = IS_finished;