summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipsk/ChangeLog7
-rw-r--r--Build/source/texk/dvipsk/writet1.c20
2 files changed, 13 insertions, 14 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index 1e33c552c32..4e2cbdc126e 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-24 Karl Berry <karl@tug.org>
+
+ * writet1.c (t1_flush_cs): t1_lenIV >= 0, not
+ t1_lenIV > 0, to fix subset problems on Macs. Found by Melissa
+ O'Neill. Reported on ntg-pdftex@ntg.nl and pdftex@tug.org,
+ 21 March, 2009 13:45:12.
+
2009-02-16 Karl Berry <karl@tug.org>
* dvips.texi (Config file paper sizes): document.
diff --git a/Build/source/texk/dvipsk/writet1.c b/Build/source/texk/dvipsk/writet1.c
index 41ef48d4df8..a91efa0a4be 100644
--- a/Build/source/texk/dvipsk/writet1.c
+++ b/Build/source/texk/dvipsk/writet1.c
@@ -1,27 +1,19 @@
/*
-Copyright (c) 1996-2005 Han The Thanh, <thanh@pdftex.org>
+$Id$
+Copyright 1996-2005, 2009 Han The Thanh, <thanh@pdftex.org>
-This file is part of pdfTeX.
-
-pdfTeX is free software; you can redistribute it and/or modify
+This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-pdfTeX is distributed in the hope that it will be useful,
+This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with pdfTeX; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-$Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/writet1.c#24 $
-*/
-
-static const char perforce_id[] =
- "$Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/writet1.c#24 $";
+along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifdef pdfTeX /* writet1 used with pdfTeX */
#include "ptexlib.h"
@@ -1546,7 +1538,7 @@ static void t1_flush_cs(boolean is_subr)
cr = 4330;
cs_len = 0;
return_cs = xtalloc(t1_lenIV + 1, byte);
- if (t1_lenIV > 0) {
+ if (t1_lenIV >= 0) {
for (cs_len = 0, r = return_cs; cs_len < t1_lenIV; cs_len++, r++)
*r = cencrypt(0x00, &cr);
*r = cencrypt(CS_RETURN, &cr);