# HG changeset patch # User Pavel Jank # Date 1004295134 0 # Node ID 625565cae9c9a32ed39c54c4b581d7ac099270bc # Parent 5446cff179a41c290dbb3d7384557c9d4cb4fc7f Use argv[0] instead of emacs when -t was specified. diff -r 5446cff179a4 -r 625565cae9c9 src/emacs.c --- a/src/emacs.c Sun Oct 28 18:50:45 2001 +0000 +++ b/src/emacs.c Sun Oct 28 18:52:14 2001 +0000 @@ -981,13 +981,13 @@ if (result < 0) { char *errstring = strerror (errno); - fprintf (stderr, "emacs: %s: %s\n", term, errstring); + fprintf (stderr, "%s: %s: %s\n", argv[0], term, errstring); exit (1); } dup (0); if (! isatty (0)) { - fprintf (stderr, "emacs: %s: not a tty\n", term); + fprintf (stderr, "%s: %s: not a tty\n", argv[0], term); exit (1); } fprintf (stderr, "Using %s\n", term);