forked from enlightenment/efl
libpng 1.4 no longer has png_check_sig, png_sig_cmp should be used instead. This exists in 1.2 as well and I'd hope noone is still on the 1.0 branch.
SVN revision: 45620
This commit is contained in:
parent
34c68e86d5
commit
9b343e33e3
|
@ -68,7 +68,7 @@ evas_image_load_file_head_png(Image_Entry *ie, const char *file, const char *key
|
|||
goto close_file;
|
||||
}
|
||||
|
||||
if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
|
||||
if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
|
||||
{
|
||||
*error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
|
||||
goto close_file;
|
||||
|
@ -152,7 +152,7 @@ evas_image_load_file_data_png(Image_Entry *ie, const char *file, const char *key
|
|||
|
||||
/* if we havent read the header before, set the header data */
|
||||
E_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))
|
||||
{
|
||||
*error = EVAS_LOAD_ERROR_CORRUPT_FILE;
|
||||
goto close_file;
|
||||
|
|
Loading…
Reference in New Issue