aboutsummaryrefslogtreecommitdiff
path: root/japanese/ptex
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-03-30 03:39:28 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-03-30 03:39:28 +0000
commit60659e98f2bf7d8514ca84f59d2f90edd93019dd (patch)
tree2ba92c47f91ecdb14b887a9f91e3c95e3e344a13 /japanese/ptex
parenta1a3d722654ef108ca3ceaa6d4fd3d6b1ee2019a (diff)
downloadports-60659e98f2bf7d8514ca84f59d2f90edd93019dd.tar.gz
ports-60659e98f2bf7d8514ca84f59d2f90edd93019dd.zip
Notes
Diffstat (limited to 'japanese/ptex')
-rw-r--r--japanese/ptex/files/patch-libs-gd-gd_png.c11
-rw-r--r--japanese/ptex/files/patch-texk-dvipdfm-pngimage.c11
-rw-r--r--japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c11
3 files changed, 33 insertions, 0 deletions
diff --git a/japanese/ptex/files/patch-libs-gd-gd_png.c b/japanese/ptex/files/patch-libs-gd-gd_png.c
new file mode 100644
index 000000000000..90006be9f914
--- /dev/null
+++ b/japanese/ptex/files/patch-libs-gd-gd_png.c
@@ -0,0 +1,11 @@
+--- libs/gd/gd_png.c.orig 2004-10-28 20:09:52.000000000 +0200
++++ libs/gd/gd_png.c 2010-03-30 05:32:28.000000000 +0200
+@@ -143,7 +143,7 @@
+ /* first do a quick check that the file really is a PNG image; could
+ * have used slightly more general png_sig_cmp() function instead */
+ gdGetBuf (sig, 8, infile);
+- if (!png_check_sig (sig, 8))
++ if (png_sig_cmp (sig, 0, 8))
+ return NULL; /* bad signature */
+
+ #ifndef PNG_SETJMP_NOT_SUPPORTED
diff --git a/japanese/ptex/files/patch-texk-dvipdfm-pngimage.c b/japanese/ptex/files/patch-texk-dvipdfm-pngimage.c
new file mode 100644
index 000000000000..16c595d0fac6
--- /dev/null
+++ b/japanese/ptex/files/patch-texk-dvipdfm-pngimage.c
@@ -0,0 +1,11 @@
+--- texk/dvipdfm/pngimage.c.orig 2002-12-25 18:51:16.000000000 +0100
++++ texk/dvipdfm/pngimage.c 2010-03-30 04:45:06.000000000 +0200
+@@ -42,7 +42,7 @@
+ 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;
diff --git a/japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c b/japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c
new file mode 100644
index 000000000000..59cf32181757
--- /dev/null
+++ b/japanese/ptex/files/patch-texk-dvipdfm-thumbnail.c
@@ -0,0 +1,11 @@
+--- texk/dvipdfm/thumbnail.c.orig 2002-12-25 18:51:16.000000000 +0100
++++ texk/dvipdfm/thumbnail.c 2010-03-30 04:44: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;
+ }