summaryrefslogtreecommitdiff
path: root/fonts/t1lib/patches
diff options
context:
space:
mode:
authorsimonb <simonb>2004-04-19 04:14:35 +0000
committersimonb <simonb>2004-04-19 04:14:35 +0000
commit78c4d559f935e01952f561c34b41742e86443776 (patch)
tree26b689adf8bf28b7fd811ba719fa49c146cc7bf9 /fonts/t1lib/patches
parent468d098fdda09cd1a2a5a69a7844b0c822704d13 (diff)
downloadpkgsrc-78c4d559f935e01952f561c34b41742e86443776.tar.gz
Add a hack so that T1_InitLib() doesn't run more than once.
Don't know if this is correct or not, but at least now xpdf works again.
Diffstat (limited to 'fonts/t1lib/patches')
-rw-r--r--fonts/t1lib/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/fonts/t1lib/patches/patch-ab b/fonts/t1lib/patches/patch-ab
new file mode 100644
index 00000000000..60190a5ab8b
--- /dev/null
+++ b/fonts/t1lib/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2004/04/19 04:14:35 simonb Exp $
+
+--- lib/t1lib/t1base.c.orig Sat Mar 6 12:58:04 2004
++++ lib/t1lib/t1base.c
+@@ -138,7 +138,11 @@ void *T1_InitLib( int log)
+ char *logfilepath=NULL;
+ char *envlogreq=NULL;
+ int usrforcelog=0;
+-
++ static int initdone;
++
++ if (initdone)
++ return (pFontBase);
++ initdone++;
+
+
+ /* Reset T1_errno */