Skip to content

Commit

Permalink
Fix for broken png_check_sig in libpng 1.6.41 (#332)
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 authored Jan 31, 2024
1 parent dac0cb0 commit 92d39a1
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 @@ -407,7 +407,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 92d39a1

Please sign in to comment.