diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-04-24 19:31:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-04-24 19:31:40 -0700 |
commit | 608915a471c5a7a1cc3ecca19fc1b516480f439f (patch) | |
tree | 743cffc8b452c67f728aa3e68e32f2ffa800bb7d | |
parent | a498f77133c4a6df5a192133528a846bd9e88d7c (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |