changeset 2440:4d55419ce99e

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
author andrew
date Tue, 08 Jun 2010 17:52:47 +0100
parents be6f14f83ea7
children 2574d999704a
files src/share/native/sun/awt/splashscreen/splashscreen_png.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_png.c	Sat May 29 23:26:16 2010 -0700
+++ b/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);