From e57cbe87a9b8c8197c51ff12101726ed6924dfdf Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Tue, 25 Nov 2003 19:29:02 +0000 Subject: XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks --- fstobdf.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/fstobdf.c b/fstobdf.c index bc300fa..3161fa1 100644 --- a/fstobdf.c +++ b/fstobdf.c @@ -43,7 +43,7 @@ in this Software without prior written authorization from The Open Group. * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF * THIS SOFTWARE. */ -/* $XFree86: xc/programs/fstobdf/fstobdf.c,v 1.6 2001/12/14 20:00:46 dawes Exp $ */ +/* $XFree86: xc/programs/fstobdf/fstobdf.c,v 1.7 2003/07/09 15:27:36 tsi Exp $ */ #include #include @@ -104,8 +104,13 @@ main(int argc, char *argv[]) fontServer = FSOpenServer(serverName); if (!fontServer) { - fprintf(stderr, "can't open font server \"%s\"\n", - FSServerName(serverName)); + char *sn = FSServerName(serverName); + if (sn) + fprintf(stderr, "%s: can't open font server \"%s\"\n", + argv[0], sn); + else + fprintf(stderr, "%s: No font server specified.\n", + argv[0]); exit(0); } bitmapFormat = 0; -- cgit v1.2.3