Fix for libpng-1.4 (png_check_sig->png_sig_cmp).

SVN revision: 46088
This commit is contained in:
Kim Woelders 2010-02-11 20:01:54 +00:00
parent 2dee79e83d
commit 2d25ea7c2a
1 changed files with 1 additions and 1 deletions

View File

@ -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;