aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xpdf
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2007-09-02 23:21:03 +0800
committernork <nork@FreeBSD.org>2007-09-02 23:21:03 +0800
commitbca4529b08a7a716a5928c668a99bf116ae3d531 (patch)
tree463c07e6c8d967baaf4dc0423a451b420e3ad452 /graphics/xpdf
parent34abd2f6b8220abc0bbc68f6ed6379faa9bd79f3 (diff)
downloadfreebsd-ports-gnome-bca4529b08a7a716a5928c668a99bf116ae3d531.tar.gz
freebsd-ports-gnome-bca4529b08a7a716a5928c668a99bf116ae3d531.tar.zst
freebsd-ports-gnome-bca4529b08a7a716a5928c668a99bf116ae3d531.zip
Fix misprints some documents on LP64 archs.
PR: ports/112665 Submitted by: naddy
Diffstat (limited to 'graphics/xpdf')
-rw-r--r--graphics/xpdf/Makefile2
-rw-r--r--graphics/xpdf/files/patch-xpdf_Stream.cc18
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index fc69d42d82ae..79855b40d969 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xpdf
PORTVERSION= 3.02
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}
diff --git a/graphics/xpdf/files/patch-xpdf_Stream.cc b/graphics/xpdf/files/patch-xpdf_Stream.cc
new file mode 100644
index 000000000000..0804c26b55bc
--- /dev/null
+++ b/graphics/xpdf/files/patch-xpdf_Stream.cc
@@ -0,0 +1,18 @@
+--- xpdf/Stream.cc.orig 2007-09-03 00:17:03.000000000 +0900
++++ xpdf/Stream.cc 2007-09-03 00:17:45.000000000 +0900
+@@ -4479,6 +4479,7 @@
+ n = 3;
+ t = (c0 << 24) | (c1 << 16) | (c2 << 8);
+ }
++ t &= 0xffffffff;
+ for (i = 4; i >= 0; --i) {
+ buf1[i] = (char)(t % 85 + 0x21);
+ t /= 85;
+@@ -4496,6 +4497,7 @@
+ eof = gTrue;
+ } else {
+ t = (c0 << 24) | (c1 << 16) | (c2 << 8) | c3;
++ t &= 0xffffffff;
+ if (t == 0) {
+ *bufEnd++ = 'z';
+ if (++lineLen == 65) {