ports/graphics/xpdf3/files/patch-xpdf_Stream.cc
Cy Schubert ed06a7905e This is the functional update of xpdf to xpdf 4.00.
graphics/xpdf is renamed (actually copied) to xpdf3. Those who want to
continue to use xpdf with a Motif interface can either install xpdf3 or
set XPDF_VERSION=3 in make.conf and continue to install graphics/xpdf.
This works around any POLA issues people might have between the
old and the new.

PR:		222002
2017-09-12 19:22:01 +00:00

18 lines
500 B
C++

--- 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) {