summaryrefslogtreecommitdiff
path: root/community/fltk2/libpng14.patch
blob: f6c49228e0b831ff064694d6e9405f9b31c5c5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
 }