Skip to content

Commit aafc1e1

Browse files
committed
6959123: Remove use of obsolete png_check_sig function in splashscreen_png.c
Avoid use of deprecated libpng macro (removed in some 1.4.x releases) Reviewed-by: prr
1 parent 12def42 commit aafc1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ SplashDecodePngStream(Splash * splash, SplashStream * stream)
182182
int success = 0;
183183

184184
stream->read(stream, sig, SIG_BYTES);
185-
if (!png_check_sig(sig, SIG_BYTES)) {
185+
if (png_sig_cmp(sig, 0, SIG_BYTES)) {
186186
goto done;
187187
}
188188
success = SplashDecodePng(splash, my_png_read_stream, stream);

0 commit comments

Comments
 (0)