changeset 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 a9f95d2ac181
children 2ea2644e07fb
files lib-src/emacsclient.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);
     }