summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-04-24 19:31:40 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-04-24 19:31:40 -0700
commit608915a471c5a7a1cc3ecca19fc1b516480f439f (patch)
tree743cffc8b452c67f728aa3e68e32f2ffa800bb7d
parenta498f77133c4a6df5a192133528a846bd9e88d7c (diff)
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.
-rw-r--r--bdftopcf.c2
1 files changed, 1 insertions, 1 deletions
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 : "<stdin>");
exit (1);
}
if (output_name)