From defb80d7adcb5ea918dec614f0044fdc6967e4a2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 27 Jul 1994 17:59:03 +0000 Subject: [PATCH] (main): New local var progname saves argv[0]. --- lib-src/emacsclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5