blob: 6230eb2764018f63af188cba23fd4d6d3a59f624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
http://bugs.gentoo.org/show_bug.cgi?id=308885
--- common/gr_texture.c
+++ 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;
}
|