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:
parent
b139ccbd5f
commit
92caff610b
2
figlet.c
2
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user