freebsd-ports/print/teTeX-base/files/patch-texk-dvipdfm-thumbnail.c
Dirk Meyer d71ce2a328 - fix build for png-1.4.1
PR:		145108
2010-03-28 14:05:35 +00:00

11 lines
445 B
C

--- texk/dvipdfm/thumbnail.c.orig 2002-12-25 18:51:16.000000000 +0100
+++ texk/dvipdfm/thumbnail.c 2010-03-28 15:59:51.000000000 +0200
@@ -79,7 +79,7 @@
}
if (fread (sigbytes, 1, sizeof(sigbytes), thumb_file) !=
sizeof(sigbytes) ||
- (!png_check_sig (sigbytes, sizeof(sigbytes)))) {
+ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)))) {
fprintf (stderr, "\nThumbnail not a png file! Skipping\n");
return NULL;
}