blob: 618c987a3152f37995967eb970350e5d7e2031e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
http://bugs.gentoo.org/show_bug.cgi?id=308885
--- a/common/gr_texture.c
+++ b/common/gr_texture.c
@@ -419,7 +419,7 @@ read_png_file (GrTexture *texture, char
if (fread (header, 1, PNG_BYTES_TO_CHECK, file) != PNG_BYTES_TO_CHECK) {
goto ERROR;
}
- if (!png_check_sig (header, PNG_BYTES_TO_CHECK)) {
+ if (png_sig_cmp (header, 0, PNG_BYTES_TO_CHECK)) {
goto ERROR;
}
|