summaryrefslogtreecommitdiff
blob: 472df8b742e5e6d0bdce6315f54e41c30dfa3833 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/FbTk/ImagePNG.cc
+++ src/FbTk/ImagePNG.cc
@@ -88,7 +88,7 @@
     // check header
     unsigned char tag[4];
     fread(tag, 1, 4, fp);
-    if (!png_check_sig(tag, 4)) {
+    if (png_sig_cmp(tag, 0, 4)) {
         fclose(fp);
         return 0;
     }