blob: e710a9dc9027d1c553b472b2cc8e9421896543a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/ImageData.cpp.orig 2007-12-12 22:07:21.000000000 +0100
+++ src/ImageData.cpp 2010-03-29 09:29:18.000000000 +0200
@@ -395,7 +395,7 @@
/* Check for the 8-byte signature */
fread(sig, 1, 8, infile);
- if (!png_check_sig((unsigned char *) sig, 8))
+ if (png_sig_cmp((unsigned char *) sig, 0, 8))
{
fclose(infile);
return false; // seems not to be a valid png file
|