Mercurial > emacs
diff lib-src/emacsclient.c @ 8360:e1518247fd63
(main): New local var progname saves argv[0].
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Wed, 27 Jul 1994 17:59:03 +0000 |
| parents | 3f82ba603fa3 |
| children | dd3b83e4ceb0 |
line wrap: on
line diff
--- a/lib-src/emacsclient.c Wed Jul 27 17:52:02 1994 +0000 +++ b/lib-src/emacsclient.c Wed Jul 27 17:59:03 1994 +0000 @@ -196,6 +196,7 @@ char gwdirb[BUFSIZ]; char *cwd; char *temp; + char *progname = argv[0]; if (argc < 2) { @@ -291,7 +292,7 @@ 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); }
