summaryrefslogtreecommitdiff
path: root/community/fltk2/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/fltk2/libpng14.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/fltk2/libpng14.patch')
-rw-r--r--community/fltk2/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/fltk2/libpng14.patch b/community/fltk2/libpng14.patch
new file mode 100644
index 000000000..f6c49228e
--- /dev/null
+++ b/community/fltk2/libpng14.patch
@@ -0,0 +1,12 @@
+diff -upr fltk-2.0.x-r6829.orig/images/fl_png.cxx fltk-2.0.x-r6829/images/fl_png.cxx
+--- fltk-2.0.x-r6829.orig/images/fl_png.cxx 2010-01-23 04:42:12.000000000 +0200
++++ fltk-2.0.x-r6829/images/fl_png.cxx 2010-01-23 04:58:31.000000000 +0200
+@@ -62,7 +62,7 @@ bool pngImage::test(const uchar* datas,
+ #if !HAVE_LIBPNG
+ return 0;
+ #else
+- return png_check_sig((png_byte*)datas, (int)size)!=0;
++ return png_sig_cmp((png_byte*)datas, 0, (int)size)==0;
+ #endif
+ }
+