libpng 1.4 no longer has png_check_sig, png_sig_cmp should be used instead. This...
authormekius <mekius@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jan 2010 05:52:27 +0000 (05:52 +0000)
committermekius <mekius@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jan 2010 05:52:27 +0000 (05:52 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@45620 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/loaders/png/evas_image_load_png.c

index e541a41..989fcfe 100644 (file)
@@ -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;