diff src/emacs.c @ 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 ea36983f19d3
children 67c90e8bde1a
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);