From: Richard M. Stallman Date: Wed, 27 Jul 1994 17:59:03 +0000 (+0000) Subject: (main): New local var progname saves argv[0]. X-Git-Tag: emacs-19.34~7493 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=defb80d7adcb5ea918dec614f0044fdc6967e4a2;p=emacs.git (main): New local var progname saves argv[0]. --- 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); }