aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib-src/emacsclient.c3
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)
196 char gwdirb[BUFSIZ]; 196 char gwdirb[BUFSIZ];
197 char *cwd; 197 char *cwd;
198 char *temp; 198 char *temp;
199 char *progname = argv[0];
199 200
200 if (argc < 2) 201 if (argc < 2)
201 { 202 {
@@ -291,7 +292,7 @@ main (argc, argv)
291 msgp->mtype = 1; 292 msgp->mtype = 1;
292 if (msgsnd (s, msgp, strlen (msgp->mtext)+1, 0) < 0) 293 if (msgsnd (s, msgp, strlen (msgp->mtext)+1, 0) < 0)
293 { 294 {
294 fprintf (stderr, "%s: ", argv[0]); 295 fprintf (stderr, "%s: ", progname);
295 perror ("msgsnd"); 296 perror ("msgsnd");
296 exit (1); 297 exit (1);
297 } 298 }