aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/postscript
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-09-20 15:07:44 +0000
committerrsc <devnull@localhost>2004-09-20 15:07:44 +0000
commitdcc9531c5a8d5d43d71060f8975d592c7598b349 (patch)
treee3bb92b91a89e0f8ef283d9be47f46e02e474e21 /src/cmd/postscript
parent8d4a3514a8a8ba68c22be4c75fa58111fa5c2f9f (diff)
downloadplan9port-dcc9531c5a8d5d43d71060f8975d592c7598b349.tar.gz
plan9port-dcc9531c5a8d5d43d71060f8975d592c7598b349.tar.bz2
plan9port-dcc9531c5a8d5d43d71060f8975d592c7598b349.zip
bug fix
Diffstat (limited to 'src/cmd/postscript')
-rw-r--r--src/cmd/postscript/download/download.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmd/postscript/download/download.c b/src/cmd/postscript/download/download.c
index bc4c4195..1006b255 100644
--- a/src/cmd/postscript/download/download.c
+++ b/src/cmd/postscript/download/download.c
@@ -52,6 +52,7 @@
*
*/
+#include <u.h>
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
@@ -60,6 +61,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include <libc.h>
#include "comments.h" /* PostScript file structuring comments */
#include "gen.h" /* general purpose definitions */
@@ -117,7 +119,9 @@ main(agc, agv)
argc = agc; /* other routines may want them */
argv = agv;
-
+
+ hostfontdir = unsharp(hostfontdir);
+
fp_in = stdin;
prog_name = argv[0]; /* just for error messages */
@@ -316,7 +320,7 @@ readresident(void)
if ( printer != NULL ) { /* use Unix 4.0 lp pathnames */
sprintf(buf, "%s/printers/%s", HOSTDIR, printer);
- path = buf;
+ path = unsharp(buf);
} else path = residentfonts;
if ( (fp = fopen(path, "r")) != NULL ) {