Use font file name without suffix in error message

If a bad font file name is specified, display only the font name
without suffix, otherwise only the .tlf suffix is displayed (if
TLF_FONTS is defined)

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka 2011-01-16 13:29:55 -02:00
parent b139ccbd5f
commit 92caff610b

@ -1204,7 +1204,7 @@ void readfont()
#endif
if (fontfile==NULL) {
fprintf(stderr,"%s: %s: Unable to open font file\n",myname,fontpath);
fprintf(stderr,"%s: %s: Unable to open font file\n",myname,fontname);
exit(1);
}