From 92caff610b21f14f50af9a42923057054407cfe9 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Sun, 16 Jan 2011 13:29:55 -0200 Subject: [PATCH] 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 --- figlet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/figlet.c b/figlet.c index 2a4dd01..68cfd1d 100644 --- a/figlet.c +++ b/figlet.c @@ -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); }