changeset 40418:625565cae9c9

Use argv[0] instead of emacs when -t was specified.
author Pavel Janík <Pavel@Janik.cz>
date Sun, 28 Oct 2001 18:52:14 +0000
parents 5446cff179a4
children d62da8c1d493
files src/emacs.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);