diff options
-rw-r--r-- | lib-src/emacsclient.c | 3 |
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); } |