6959123: Remove use of obsolete png_check_sig function in splashscreen_png.c
authorandrew
Tue, 08 Jun 2010 17:52:47 +0100
changeset 5751 5f6d488b1972
parent 5580 629274e4c99f
child 5752 02bd145a47f6
6959123: Remove use of obsolete png_check_sig function in splashscreen_png.c Summary: Avoid use of deprecated libpng macro (removed in some 1.4.x releases) Reviewed-by: prr
jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c	Sat May 29 23:26:16 2010 -0700
+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c	Tue Jun 08 17:52:47 2010 +0100
@@ -182,7 +182,7 @@
     int success = 0;
 
     stream->read(stream, sig, SIG_BYTES);
-    if (!png_check_sig(sig, SIG_BYTES)) {
+    if (png_sig_cmp(sig, 0, SIG_BYTES)) {
         goto done;
     }
     success = SplashDecodePng(splash, my_png_read_stream, stream);