diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-26 22:49:08 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-26 22:49:08 +0000 |
commit | 437014f2dc8502f882d5f5c84a10cabe88d00793 (patch) | |
tree | 570bccd8ce85b1fbef168cb5ac60bcffaef03a59 | |
parent | 3e85e18c6e30520be07f9369866d8116ecb0fd87 (diff) |
merge latest (4.3.99.16) from XFree86 (vendor) branchXORG-RELEASE-1-BASEXEVIE-MERGEXEVIE-BASEXINERAMA_2XEVIE
-rw-r--r-- | fstobdf.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 <stdio.h> #include <stdlib.h> @@ -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; |