summaryrefslogtreecommitdiff
path: root/backend/dvi/mdvi-lib
diff options
context:
space:
mode:
Diffstat (limited to 'backend/dvi/mdvi-lib')
-rw-r--r--backend/dvi/mdvi-lib/t1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/dvi/mdvi-lib/t1.c b/backend/dvi/mdvi-lib/t1.c
index bc910ba6..d63f055c 100644
--- a/backend/dvi/mdvi-lib/t1.c
+++ b/backend/dvi/mdvi-lib/t1.c
@@ -143,7 +143,7 @@ char *t1_lookup_font(const char *name, Ushort *hdpi, Ushort *vdpi)
/* get the `base' name */
if(ext) {
- newname = mdvi_strdup(name);
+ newname = mdvi_strdup(info.fontfile);
newname[ext - info.fontfile - 1] = 0;
} else
newname = (char *)name; /* we don't modify this */