summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2001-10-28 18:53:39 +0000
committerPavel Janík <Pavel@Janik.cz>2001-10-28 18:53:39 +0000
commit186486eb07ffdc72abbe5907ed100e9db402633d (patch)
treed41f4cb9f5f369f53958aaf0f2f95d7eb8b37b22 /src/emacs.c
parent4707d2d07995b52a096c85f874d69893dd86e774 (diff)
downloademacs-186486eb07ffdc72abbe5907ed100e9db402633d.tar.gz
Use argv[0] instead of emacs when -t was specified.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index db031bc5c8a..f709cc9753f 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -981,13 +981,13 @@ main (argc, argv, envp)
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);