summaryrefslogtreecommitdiff
path: root/print/ghostscript-nox11/patches/patch-bug-workaround
blob: 63c9aad42a6a0da2a5f0d405c890b7df87e0830f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-bug-workaround,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $

I haven't found out the cause of the trouble of

	Unrecoverable error: invalidaccess in put

... and this is only a workaround.
Please fix the problem and remove this patch.

--- lib/gs_dps.ps.bak	Thu Mar  9 17:40:39 2000
+++ lib/gs_dps.ps	Tue Mar 28 12:13:16 2000
@@ -53,7 +53,10 @@
     } {
       dup type /dicttype eq {
 		% Save a copy of this dictionary in global VM.
-	dup maxlength dict .copydict readonly
+	dup maxlength dict
+	% same as .copydict, but uses .forceput
+	dup 3 -1 roll { .forceput dup } forall pop
+	readonly
       } {
 	pop pop
       } ifelse