summaryrefslogtreecommitdiff
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-27 17:59:03 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-27 17:59:03 +0000
commitdefb80d7adcb5ea918dec614f0044fdc6967e4a2 (patch)
tree8de1298ef0ea9bd0d237b50edb653c40a8712b45 /lib-src/emacsclient.c
parentd86bdede4dd6dd10766662350fb91e87cec81031 (diff)
downloademacs-defb80d7adcb5ea918dec614f0044fdc6967e4a2.tar.gz
(main): New local var progname saves argv[0].
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r--lib-src/emacsclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index f613daf21d5..76d0b4e54d9 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -196,6 +196,7 @@ main (argc, argv)
char gwdirb[BUFSIZ];
char *cwd;
char *temp;
+ char *progname = argv[0];
if (argc < 2)
{
@@ -291,7 +292,7 @@ main (argc, argv)
msgp->mtype = 1;
if (msgsnd (s, msgp, strlen (msgp->mtext)+1, 0) < 0)
{
- fprintf (stderr, "%s: ", argv[0]);
+ fprintf (stderr, "%s: ", progname);
perror ("msgsnd");
exit (1);
}