From 608915a471c5a7a1cc3ecca19fc1b516480f439f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 24 Apr 2007 19:31:40 -0700 Subject: Sun bug 6509763: bdftopcf crashes when bad font passed on stdin When printing corrupt font error message, make sure file name reported is not NULL. --- bdftopcf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdftopcf.c b/bdftopcf.c index d0b85d1..9049657 100644 --- a/bdftopcf.c +++ b/bdftopcf.c @@ -166,7 +166,7 @@ main (int argc, char *argv[]) if (bdfReadFont (&font, input, bit, byte, glyph, scan) != Successful) { fprintf (stderr, "%s: bdf input, %s, corrupt\n", - program_name, input_name); + program_name, input_name ? input_name : ""); exit (1); } if (output_name) -- cgit v1.2.3