From 186486eb07ffdc72abbe5907ed100e9db402633d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Sun, 28 Oct 2001 18:53:39 +0000 Subject: [PATCH] Use argv[0] instead of emacs when -t was specified. --- src/ChangeLog | 2 ++ src/emacs.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3e91f708bbc..2ba3c7cd09d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-10-28 Pavel Jan,Bm(Bk + * emacs.c: Use argv[0] instead of emacs when -t was specified. + * keyboard.c: Change doc-string comments to `new style' [w/`doc:' keyword]. Fix typos in comments. 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); -- 2.39.5