aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/postscript/tr2post/readDESC.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/postscript/tr2post/readDESC.c')
-rw-r--r--src/cmd/postscript/tr2post/readDESC.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/postscript/tr2post/readDESC.c b/src/cmd/postscript/tr2post/readDESC.c
index 4dbc193a..600fc174 100644
--- a/src/cmd/postscript/tr2post/readDESC.c
+++ b/src/cmd/postscript/tr2post/readDESC.c
@@ -44,7 +44,7 @@ readDESC(void) {
char *descnameformat = "%s/dev%s/DESC";
char *descfilename = 0;
Biobuf *bfd;
- Biobufhdr *Bfd;
+ Biobuf *Bfd;
int i, state = -1;
int fontindex = 0;
@@ -52,7 +52,7 @@ readDESC(void) {
descfilename = galloc(descfilename, strlen(descnameformat)+strlen(FONTDIR)
+strlen(devname), "readdesc");
sprint(descfilename, descnameformat, FONTDIR, devname);
- if ((bfd = Bopen(descfilename, OREAD)) == 0) {
+ if ((bfd = Bopen(unsharp(descfilename), OREAD)) == 0) {
error(WARNING, "cannot open file %s\n", descfilename);
return(0);
}
@@ -136,4 +136,5 @@ readDESC(void) {
}
}
Bterm(Bfd);
+ return 0;
}