Skip to content

Commit

Permalink
Fix for broken png_check_sig in libpng 1.6.41
Browse files Browse the repository at this point in the history
See pnggroup/libpng#534

The bug report says that `png_check_sig` was deprecated many years ago.
  • Loading branch information
speleo3 committed Jan 30, 2024
1 parent 442d7ca commit 423525e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layer0/MyPNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ std::unique_ptr<pymol::Image> MyPNGRead(const char *file_name)
}

if(ok) {
ret = png_check_sig(buf, 8);
ret = !png_sig_cmp(buf, 0, 8);
if(!ret)
ok = false;
}
Expand Down

0 comments on commit 423525e

Please sign in to comment.