summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-22 15:46:54 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-22 15:46:54 +0000
commit8de0467190e36fe1b7eea71bb413852b68faf152 (patch)
tree13e4faf392e4157d1c5a0ee659232bcf79d0070e /Build/source/texk/web2c
parentb8a9df64642af8ddaaa118405710e1dac69b09d5 (diff)
build fix for libpng-1.4
git-svn-id: svn://tug.org/texlive/trunk@17145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r--Build/source/texk/web2c/xetexdir/ChangeLog6
-rw-r--r--Build/source/texk/web2c/xetexdir/pngimage.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/xetexdir/ChangeLog b/Build/source/texk/web2c/xetexdir/ChangeLog
index 134ec50754b..954766c5b5a 100644
--- a/Build/source/texk/web2c/xetexdir/ChangeLog
+++ b/Build/source/texk/web2c/xetexdir/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-22 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * pngimage.c (check_for_png): Replace png_check_sig() by
+ png_sig_cmp() for libpng-1.4.
+ From Hanno Boeck <hanno@hboeck,de>.
+
2009-12-12 Peter Breitenlohner <peb@mppmu.mpg.de>
* am/xetex.am: Replace the obsolete $(mkdir_p) by $(MKDIR_P).
diff --git a/Build/source/texk/web2c/xetexdir/pngimage.c b/Build/source/texk/web2c/xetexdir/pngimage.c
index 9408fbabc39..0701c4f46d0 100644
--- a/Build/source/texk/web2c/xetexdir/pngimage.c
+++ b/Build/source/texk/web2c/xetexdir/pngimage.c
@@ -101,7 +101,7 @@ check_for_png (FILE *png_file)
rewind (png_file);
if (fread (sigbytes, 1, sizeof(sigbytes), png_file) !=
sizeof(sigbytes) ||
- (!png_check_sig (sigbytes, sizeof(sigbytes))))
+ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes))))
return 0;
else
return 1;