bug fix
This commit is contained in:
parent
8d4a3514a8
commit
dcc9531c5a
1 changed files with 6 additions and 2 deletions
|
|
@ -52,6 +52,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <u.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
@ -60,6 +61,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <libc.h>
|
||||||
|
|
||||||
#include "comments.h" /* PostScript file structuring comments */
|
#include "comments.h" /* PostScript file structuring comments */
|
||||||
#include "gen.h" /* general purpose definitions */
|
#include "gen.h" /* general purpose definitions */
|
||||||
|
|
@ -117,7 +119,9 @@ main(agc, agv)
|
||||||
|
|
||||||
argc = agc; /* other routines may want them */
|
argc = agc; /* other routines may want them */
|
||||||
argv = agv;
|
argv = agv;
|
||||||
|
|
||||||
|
hostfontdir = unsharp(hostfontdir);
|
||||||
|
|
||||||
fp_in = stdin;
|
fp_in = stdin;
|
||||||
|
|
||||||
prog_name = argv[0]; /* just for error messages */
|
prog_name = argv[0]; /* just for error messages */
|
||||||
|
|
@ -316,7 +320,7 @@ readresident(void)
|
||||||
|
|
||||||
if ( printer != NULL ) { /* use Unix 4.0 lp pathnames */
|
if ( printer != NULL ) { /* use Unix 4.0 lp pathnames */
|
||||||
sprintf(buf, "%s/printers/%s", HOSTDIR, printer);
|
sprintf(buf, "%s/printers/%s", HOSTDIR, printer);
|
||||||
path = buf;
|
path = unsharp(buf);
|
||||||
} else path = residentfonts;
|
} else path = residentfonts;
|
||||||
|
|
||||||
if ( (fp = fopen(path, "r")) != NULL ) {
|
if ( (fp = fopen(path, "r")) != NULL ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue