forked from old/legacy-imlib2
Fix for libpng-1.4 (png_check_sig->png_sig_cmp).
SVN revision: 46088
This commit is contained in:
parent
2dee79e83d
commit
2d25ea7c2a
|
@ -38,7 +38,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
|
||||
/* if we haven't read the header before, set the header data */
|
||||
fread(buf, 1, PNG_BYTES_TO_CHECK, f);
|
||||
if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
|
||||
if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
|
||||
{
|
||||
fclose(f);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue