1. libgd
  2. Untitled project
  3. gd-libgd

Commits

tabe  committed dc77afa

use png_sig_cmp to support libpng 1.4, old is deprecated already in older version

  • Participants
  • Parent commits 3f98bbe
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/gd_png.c

View file
  • Ignore whitespace
 	return NULL;
   }
 
-	if (!png_check_sig (sig, 8)) { /* bad signature */
+	if (png_sig_cmp(sig, 0, 8) != 0) { /* bad signature */
     	return NULL;		/* bad signature */
 	}